From 4c6d7054a9d545c8d8978b6fe1d1f8a89119f2c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 18 Mar 2014 23:42:49 +0000 Subject: Facebook: Load user info when receiving message from someone who isn't in clist yet git-svn-id: http://svn.miranda-ng.org/main/trunk@8655 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'protocols/FacebookRM/src/communication.cpp') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 5c99482a89..e1facb8016 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -209,6 +209,7 @@ DWORD facebook_client::choose_security_level(RequestType request_type) // case REQUEST_HOME: // case REQUEST_DTSG: // case REQUEST_BUDDY_LIST: +// case REQUEST_LOAD_FRIEND: // case REQUEST_LOAD_FRIENDS: // case REQUEST_USER_INFO: // case REQUEST_LOAD_REQUESTS: @@ -276,6 +277,7 @@ int facebook_client::choose_method(RequestType request_type) // case REQUEST_PAGES: // case REQUEST_NOTIFICATIONS: // case REQUEST_RECONNECT: +// case REQUEST_LOAD_FRIEND: // case REQUEST_LOAD_FRIENDS: // case REQUEST_USER_INFO: // case REQUEST_LOAD_REQUESTS: @@ -318,6 +320,7 @@ std::string facebook_client::choose_server(RequestType request_type, std::string // case REQUEST_LOGOUT: // case REQUEST_BUDDY_LIST: +// case REQUEST_LOAD_FRIEND: // case REQUEST_LOAD_FRIENDS: // case REQUEST_FEEDS: // case REQUEST_PAGES: @@ -368,6 +371,16 @@ std::string facebook_client::choose_action(RequestType request_type, std::string case REQUEST_BUDDY_LIST: return "/ajax/chat/buddy_list.php?__a=1"; + case REQUEST_LOAD_FRIEND: + { + 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; + } + case REQUEST_LOAD_FRIENDS: { std::string action = "/ajax/chat/user_info_all.php?__a=1&viewer=%s&__user=%s"; -- cgit v1.2.3