summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/communication.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-07-30 22:36:59 +0000
committerRobert Pösel <robyer@seznam.cz>2014-07-30 22:36:59 +0000
commit6dcfe55905a55fad9169a26d434c93ca15d0717f (patch)
tree618f69a07800ac13c95c52f8ef90754a0d52ded4 /protocols/FacebookRM/src/communication.cpp
parent4c117da80411021cabef4a40ebfaad05c6a7ff8b (diff)
Facebook: Support for denying friendship requests
git-svn-id: http://svn.miranda-ng.org/main/trunk@9999 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/communication.cpp')
-rw-r--r--protocols/FacebookRM/src/communication.cpp17
1 files changed, 7 insertions, 10 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index 58fa61ed51..4c32e9648e 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -223,6 +223,7 @@ DWORD facebook_client::choose_security_level(RequestType request_type)
// case REQUEST_REQUEST_FRIEND:
// case REQUEST_APPROVE_FRIEND:
// case REQUEST_CANCEL_REQUEST:
+// case REQUEST_FRIENDS_REQUEST:
// case REQUEST_FEEDS:
// case REQUEST_PAGES:
// case REQUEST_NOTIFICATIONS:
@@ -270,8 +271,8 @@ int facebook_client::choose_method(RequestType request_type)
case REQUEST_LOGOUT:
case REQUEST_DELETE_FRIEND:
case REQUEST_REQUEST_FRIEND:
- case REQUEST_APPROVE_FRIEND:
case REQUEST_CANCEL_REQUEST:
+ case REQUEST_FRIENDS_REQUEST:
case REQUEST_UNREAD_THREADS:
return REQUEST_POST;
@@ -317,7 +318,6 @@ std::string facebook_client::choose_server(RequestType request_type, std::string
case REQUEST_HOME:
case REQUEST_DTSG:
- case REQUEST_APPROVE_FRIEND:
case REQUEST_LOAD_REQUESTS:
case REQUEST_SEARCH:
case REQUEST_USER_INFO:
@@ -348,6 +348,7 @@ std::string facebook_client::choose_server(RequestType request_type, std::string
// case REQUEST_DELETE_FRIEND:
// case REQUEST_REQUEST_FRIEND:
// case REQUEST_CANCEL_REQUEST:
+// case REQUEST_FRIENDS_REQUEST:
// case REQUEST_UNREAD_THREADS:
default:
return FACEBOOK_SERVER_REGULAR;
@@ -435,18 +436,14 @@ std::string facebook_client::choose_action(RequestType request_type, std::string
return "/ajax/add_friend/action.php?__a=1";
}
- case REQUEST_APPROVE_FRIEND:
+ case REQUEST_CANCEL_REQUEST:
{
- std::string action = "/a/notifications.php?__a=1";
- if (get_data != NULL) {
- action += "&" + (*get_data);
- }
- return action;
+ return "/ajax/friends/requests/cancel.php?__a=1";
}
- case REQUEST_CANCEL_REQUEST:
+ case REQUEST_FRIENDS_REQUEST:
{
- return "/ajax/friends/requests/cancel.php?__a=1";
+ return "/requests/friends/ajax/?__a=1";
}
case REQUEST_FEEDS: