diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-03-18 23:42:49 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-03-18 23:42:49 +0000 |
commit | 4c6d7054a9d545c8d8978b6fe1d1f8a89119f2c7 (patch) | |
tree | 71d776c7c60cceaec8d61895923062905c13f561 /protocols/FacebookRM/src/communication.cpp | |
parent | b64a452a1787bb1a46ec50babc8d713afe73ca58 (diff) |
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
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r-- | protocols/FacebookRM/src/communication.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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";
|