From f2b5b0dd953573cbce3fe8df62daa2ada646c626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 1 Sep 2015 21:17:16 +0000 Subject: 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 --- protocols/FacebookRM/src/communication.cpp | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'protocols/FacebookRM/src/communication.cpp') 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: -- cgit v1.2.3