diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-04-17 19:18:42 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-04-17 19:18:42 +0000 |
commit | ee2b2967a9d17bd38575dad6ab9a7c0c5d52af2b (patch) | |
tree | bf6add83f289645bd9c408cf610def5f056c1880 | |
parent | 4e7d6200d3674f9afdcb996f3c4deb2812e36807 (diff) |
Facebook: Oops, don't load attachments when there are none
git-svn-id: http://svn.miranda-ng.org/main/trunk@16707 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 29a7a42912..866a140e8b 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -289,7 +289,7 @@ void parseAttachments(FacebookProto *proto, std::string *message_text, const JSO std::string type; const JSONNode &attachments_ = delta_["attachments"]; - if (!attachments_) + if (!attachments_ || attachments_.empty()) return; for (auto itAttachment = attachments_.begin(); itAttachment != attachments_.end(); ++itAttachment) { |