From aabbcfa26209c2186fa20d71686a5d07d6b98598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 23 Jan 2017 00:12:37 +0100 Subject: Facebook: Optimize searching pages/persons --- protocols/FacebookRM/src/requests/search.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'protocols/FacebookRM/src/requests') 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 . #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; -- cgit v1.2.3