diff options
Diffstat (limited to 'protocols/Facebook')
-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); |