diff options
author | ikeblaster <ike@thez.info> | 2020-01-19 17:33:54 +0100 |
---|---|---|
committer | ikeblaster <ike@thez.info> | 2020-01-19 17:39:59 +0100 |
commit | 3b4590aa1ac467eabdeec188aaa595c38ee66376 (patch) | |
tree | 10f306a9bf55e867d3754c7643788838f1449a4f /protocols/Facebook | |
parent | ecd0583e8d8a9e13ea7d5100c8f21a1895c70006 (diff) |
Facebook - fix accents in attachments
Diffstat (limited to 'protocols/Facebook')
-rw-r--r-- | protocols/Facebook/src/server.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index d040b47181..908fd56446 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -492,7 +492,7 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root) CMStringA szId(metadata["messageId"].as_string().c_str()); CMStringA szBody(root["body"].as_string().c_str()); if (szBody.IsEmpty()) - szBody = metadata["snippet"].as_mstring(); + szBody = metadata["snippet"].as_string().c_str(); // parse stickers CMStringA stickerId = root["stickerId"].as_mstring(); @@ -593,19 +593,19 @@ void FacebookProto::OnPublishPrivateMessage(const JSONNode &root) else szBody.AppendFormat("\r\n\t%s: %s", TranslateU("URL"), str.c_str()); } - str = attach["title"].as_mstring(); + str = attach["title"].as_string().c_str(); if (!str.IsEmpty()) szBody.AppendFormat("\r\n\t%s: %s", TranslateU("Title"), str.c_str()); - str = attach["source"]["text"].as_mstring(); + str = attach["source"]["text"].as_string().c_str(); if (!str.IsEmpty()) szBody.AppendFormat("\r\n\t%s: %s", TranslateU("Source"), str.c_str()); - str = attach["description"]["text"].as_mstring(); + str = attach["description"]["text"].as_string().c_str(); if (!str.IsEmpty()) szBody.AppendFormat("\r\n\t%s: %s", TranslateU("Description"), str.c_str()); - str = attach["media"]["playable_url"].as_mstring(); + str = attach["media"]["playable_url"].as_string().c_str(); if (!str.IsEmpty()) szBody.AppendFormat("\r\n\t%s: %s", TranslateU("Playable media"), str.c_str()); } |