diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-01-23 00:12:37 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-01-23 00:12:37 +0100 |
commit | aabbcfa26209c2186fa20d71686a5d07d6b98598 (patch) | |
tree | c10ece7f71d388d6ca6751c56140420af65d70dd /protocols/FacebookRM/src/requests | |
parent | a379587f7147343c3fee63b8495bc725d1ee6097 (diff) |
Facebook: Optimize searching pages/persons
Diffstat (limited to 'protocols/FacebookRM/src/requests')
-rw-r--r-- | protocols/FacebookRM/src/requests/search.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/protocols/FacebookRM/src/requests/search.h b/protocols/FacebookRM/src/requests/search.h index 6ca35b10cd..5825e61cf8 100644 --- a/protocols/FacebookRM/src/requests/search.h +++ b/protocols/FacebookRM/src/requests/search.h @@ -23,16 +23,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #ifndef _FACEBOOK_REQUEST_SEARCH_H_ #define _FACEBOOK_REQUEST_SEARCH_H_ -#define SEARCH_TYPE_PEOPLE "people" -#define SEARCH_TYPE_PAGES "pages" -// other type for searching is "events" or "groups", but that's pointless to search in Miranda - // searching class SearchRequest : public HttpRequest { public: - SearchRequest(bool mobileBasicWorks, const char *type, const char *query, int s, int pn, const char *ssid) : - HttpRequest(REQUEST_GET, FORMAT, "%s/search/%s/", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE, type) + SearchRequest(bool mobileBasicWorks, const char *query, int s, int pn, const char *ssid) : + HttpRequest(REQUEST_GET, FORMAT, "%s/search/", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE) { flags |= NLHRF_REDIRECT; |