diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-21 23:35:05 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-21 23:35:05 +0300 |
commit | 50351222fcb270449c1bc452ea590704ee403416 (patch) | |
tree | e1dcebde8130f85b1af334d1eeae19220d459f38 /protocols/FacebookRM/src/notifications.cpp | |
parent | 87694f0fb5d928952c1480a34cb4eb6e13b80259 (diff) |
Facebook -> sync MHttpRequest
Diffstat (limited to 'protocols/FacebookRM/src/notifications.cpp')
-rw-r--r-- | protocols/FacebookRM/src/notifications.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/notifications.cpp b/protocols/FacebookRM/src/notifications.cpp index 516b80be20..382837648a 100644 --- a/protocols/FacebookRM/src/notifications.cpp +++ b/protocols/FacebookRM/src/notifications.cpp @@ -29,7 +29,7 @@ HttpRequest* facebook_client::getNotificationsRequest(int count) { HttpRequest *p = new HttpRequest(REQUEST_POST, FACEBOOK_SERVER_REGULAR "/ajax/notifications/client/get.php"); - p->Url << INT_PARAM("dpr", 1); + p << INT_PARAM("dpr", 1); p->Body << CHAR_PARAM("__user", self_.user_id.c_str()) @@ -53,8 +53,7 @@ HttpRequest* facebook_client::markNotificationReadRequest(const char *id) { HttpRequest *p = new HttpRequest(REQUEST_GET, FACEBOOK_SERVER_REGULAR "/ajax/notifications/mark_read.php"); - p->Url - << INT_PARAM("__a", 1) + p << INT_PARAM("__a", 1) << INT_PARAM("seen", 0) << CHAR_PARAM("fb_dtsg", dtsg_.c_str()) << CHAR_PARAM("__user", self_.user_id.c_str()) |