summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/requests
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2017-01-22 22:31:24 +0100
committerRobert Pösel <robyer@seznam.cz>2017-01-22 22:31:24 +0100
commit6dd71dba3863c45c72d9c3bfd408f969bbb33a75 (patch)
tree043b9e42aacdc5d862e7ddc392c96a12e15c83e9 /protocols/FacebookRM/src/requests
parentea70f07b4e6de61e75b4da821e7c93c6f3abdeea (diff)
Facebook: Fix searching (by name/email/...)
Diffstat (limited to 'protocols/FacebookRM/src/requests')
-rw-r--r--protocols/FacebookRM/src/requests/search.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/FacebookRM/src/requests/search.h b/protocols/FacebookRM/src/requests/search.h
index ccef176818..127a559dba 100644
--- a/protocols/FacebookRM/src/requests/search.h
+++ b/protocols/FacebookRM/src/requests/search.h
@@ -3,7 +3,7 @@
Facebook plugin for Miranda Instant Messenger
_____________________________________________
-Copyright © 2011-17 Robert Pösel
+Copyright � 2011-17 Robert P�sel
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -27,15 +27,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
class SearchRequest : public HttpRequest
{
public:
- SearchRequest(bool mobileBasicWorks, const char *query, int s, const char *ssid) :
- HttpRequest(REQUEST_GET, FORMAT, "%s/search/", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE)
+ SearchRequest(bool mobileBasicWorks, const char *query, int s, int pn, const char *ssid) :
+ HttpRequest(REQUEST_GET, FORMAT, "%s/search/people/", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE)
{
flags |= NLHRF_REDIRECT;
Url
- << "search=people"
- << CHAR_VALUE("query", query)
- << INT_VALUE("s", s);
+ << CHAR_VALUE("q", query)
+ << INT_VALUE("s", s)
+ << INT_VALUE("pn", pn);
if (mir_strlen(ssid) > 0) {
Url << CHAR_VALUE("ssid", ssid);