handle bookmark status update. resolves issue #10

This commit is contained in:
Morgan McMillian 2017-02-06 17:18:39 -08:00
parent c723b5b84a
commit 8144904d1e

View file

@ -295,6 +295,12 @@ void Pnut::onAuthorizedRequestReady(QByteArray data, int id)
QString gpid = endpoint.replace(":deletepost:",""); QString gpid = endpoint.replace(":deletepost:","");
getPost(gpid); getPost(gpid);
} }
else if (endpoint.startsWith(":bookmark"))
{
qDebug() << "Bookmark successful!";
req_map.remove(id);
emit postReceived(variant.toMap()["data"].toMap());
}
else else
{ {
qDebug() << "GOT SOMETHING NEW!"; qDebug() << "GOT SOMETHING NEW!";