diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-06-05 07:37:27 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-06-05 07:37:27 +0000 |
commit | 7cdb740b6e7599cb626deb2161aa3ab07b252e51 (patch) | |
tree | aeaf154b2c91e0070d3bf8465dec0673ffd7edb2 /protocols/FacebookRM/src/communication.cpp | |
parent | 894d04d09e39156eb2264fb49f2b24035bb16d09 (diff) |
Facebook: New feature to notify "On this day" posts at login; version bump
Right now it notify at every login, max. last 20 posts. In future I'll probably add more options to limit number of posts and do it only one per day, etc.
git-svn-id: http://svn.miranda-ng.org/main/trunk@14006 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 1bc95ff696..fde25c036f 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -261,6 +261,7 @@ std::string facebook_client::choose_server(RequestType request_type) // case REQUEST_CANCEL_FRIENDSHIP: // case REQUEST_FRIENDSHIP: // case REQUEST_UNREAD_THREADS: + // case REQUEST_ON_THIS_DAY: default: return FACEBOOK_SERVER_REGULAR; } @@ -488,6 +489,15 @@ std::string facebook_client::choose_action(RequestType request_type, std::string case REQUEST_TYPING_SEND: return "/ajax/messaging/typ.php?__a=1"; + case REQUEST_ON_THIS_DAY: + { + std::string action = "/onthisday/story/query/?__a=1"; + if (get_data != NULL) { + action += "&" + (*get_data); + } + return action; + } + default: return "/?_fb_noscript=1"; } |