From 8144904d1e04197de4a1ea5298f8d8164771de94 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Mon, 6 Feb 2017 17:18:39 -0800 Subject: [PATCH] handle bookmark status update. resolves issue #10 --- src/Pnut.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Pnut.cpp b/src/Pnut.cpp index 5fa1456..9737c48 100644 --- a/src/Pnut.cpp +++ b/src/Pnut.cpp @@ -295,6 +295,12 @@ void Pnut::onAuthorizedRequestReady(QByteArray data, int id) QString gpid = endpoint.replace(":deletepost:",""); getPost(gpid); } + else if (endpoint.startsWith(":bookmark")) + { + qDebug() << "Bookmark successful!"; + req_map.remove(id); + emit postReceived(variant.toMap()["data"].toMap()); + } else { qDebug() << "GOT SOMETHING NEW!";