diff options
author | George Hazan <ghazan@miranda.im> | 2020-08-18 18:15:41 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-08-18 18:15:41 +0300 |
commit | 833b21a85e056227ad6b161e1220ddac44d56d7d (patch) | |
tree | 05af317cb3a2d37cfadac62c8c1e81830e3eafc4 /protocols/Facebook/src/server.cpp | |
parent | 0dbba78f4fb4a05945be5aab0848c01881b8ac12 (diff) |
Facebook: *.webp avatars disabled for a while
Diffstat (limited to 'protocols/Facebook/src/server.cpp')
-rw-r--r-- | protocols/Facebook/src/server.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index 036c8f2db4..d2cb288e90 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -725,11 +725,12 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root) JsonReply reply(ExecuteRequest(pReq)); if (!reply.error()) { for (auto &sticker : reply.data()) { - std::string szUrl = sticker["animated_image"]["uri"].as_string(); - if (szUrl.empty()) - szUrl = sticker["thread_image"]["uri"].as_string(); - else - wszFileName.Format(L"%s\\STK{%S}.webp", wszPath.c_str(), stickerId.c_str()); + // std::string szUrl = sticker["animated_image"]["uri"].as_string(); + // if (szUrl.empty()) + // szUrl = sticker["thread_image"]["uri"].as_string(); + // else + // wszFileName.Format(L"%s\\STK{%S}.webp", wszPath.c_str(), stickerId.c_str()); + std::string szUrl = sticker["thread_image"]["uri"].as_string(); NETLIBHTTPREQUEST req = {}; req.cbSize = sizeof(req); |