From 3b4590aa1ac467eabdeec188aaa595c38ee66376 Mon Sep 17 00:00:00 2001 From: ikeblaster Date: Sun, 19 Jan 2020 17:33:54 +0100 Subject: Facebook - fix accents in attachments --- protocols/Facebook/src/server.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/Facebook') 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()); } -- cgit v1.2.3