diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-09-01 21:17:16 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-09-01 21:17:16 +0000 |
commit | f2b5b0dd953573cbce3fe8df62daa2ada646c626 (patch) | |
tree | 85ac873ee705901fbd00b6e348d0314c6c818fdb /protocols/FacebookRM/src/communication.cpp | |
parent | e596945743e029945b7fd8657de5d3f6c279d44b (diff) |
Facebook: Revise various requests, remove weird typing optimization
Revised requests:
* typing notification
* thread_sync
* thread_info
* user_info
* user_info_all
* buddy_list
git-svn-id: http://svn.miranda-ng.org/main/trunk@15143 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 5009d93bca..d6ffff32bb 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -296,21 +296,10 @@ std::string facebook_client::choose_action(RequestType request_type, std::string return "/ajax/chat/buddy_list.php?__a=1"; case REQUEST_USER_INFO: - { - std::string action = "/ajax/chat/user_info.php?__a=1&viewer=%s&__user=%s"; - utils::text::replace_all(&action, "%s", self_.user_id); - if (get_data != NULL) { - action += "&" + (*get_data); - } - return action; - } + return "/ajax/chat/user_info.php?__a=1"; case REQUEST_USER_INFO_ALL: - { - std::string action = "/ajax/chat/user_info_all.php?__a=1&viewer=%s&__user=%s"; - utils::text::replace_all(&action, "%s", self_.user_id); - return action; - } + return "/ajax/chat/user_info_all.php?__a=1&viewer=" + self_.user_id; case REQUEST_USER_INFO_MOBILE: { @@ -432,7 +421,7 @@ std::string facebook_client::choose_action(RequestType request_type, std::string return "/ajax/mercury/thread_info.php?__a=1"; case REQUEST_THREAD_SYNC: - return "/ajax/mercury/thread_sync.php"; + return "/ajax/mercury/thread_sync.php?__a=1"; case REQUEST_MESSAGES_RECEIVE: case REQUEST_ACTIVE_PING: |