summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/FacebookRM/src/communication.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp
index a0770b1783..bc18e52ddb 100644
--- a/protocols/FacebookRM/src/communication.cpp
+++ b/protocols/FacebookRM/src/communication.cpp
@@ -143,13 +143,15 @@ http::response facebook_client::flap(RequestType request_type, std::string* requ
title = ptrA( mir_utf8decodeA(title.c_str()));
}
+ bool silent = resp.data.find("\"silentError\":1") != std::string::npos;
+
resp.error_number = error_num;
resp.error_text = error;
resp.error_title = title;
resp.code = HTTP_CODE_FAKE_ERROR;
parent->debugLogA(" ! ! Received Facebook error: %d -- %s", error_num, error.c_str());
- if (notify_errors(request_type))
+ if (notify_errors(request_type) && !silent)
client_notify(_A2T(error.c_str()));
}
}