diff options
author | Robert Pösel <robyer@seznam.cz> | 2017-01-07 08:58:36 +0100 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2017-01-07 08:59:01 +0100 |
commit | ca08d491b0f3058e465513c6c181ab9c121e2ca9 (patch) | |
tree | b976cabf2c9b52010ac8c28fa1499af6deea5dee | |
parent | 3d4f907c1237b1210ae75a9530a82fabda2af484 (diff) |
Facebook: Fix logging string (fixes #660)
-rw-r--r-- | protocols/FacebookRM/src/json.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp index 764ae69c5a..d577fb882c 100644 --- a/protocols/FacebookRM/src/json.cpp +++ b/protocols/FacebookRM/src/json.cpp @@ -403,7 +403,7 @@ void parseAttachments(FacebookProto *proto, std::string *message_text, const JSO } else { *message_text += T2Utf(TranslateT("User sent an unsupported attachment. Open your browser to see it.")); - proto->debugLogA("json::parseAttachments (%s) - Unsupported attachment:\n%s", legacy ? "legacy" : "not legacy", attachments_.as_string()); + proto->debugLogA("json::parseAttachments (%s) - Unsupported attachment:\n%s", legacy ? "legacy" : "not legacy", attachments_.as_string().c_str()); } } @@ -1089,7 +1089,7 @@ int facebook_json_parser::parse_unread_threads(std::string *data, std::vector< s return EXIT_FAILURE; for (auto it = unread_threads.begin(); it != unread_threads.end(); ++it) { - const JSONNode &thread_ids = (*it)["thread_ids"]; + const JSONNode &thread_ids = (*it)["thread_fbids"]; for (auto jt = thread_ids.begin(); jt != thread_ids.end(); ++jt) threads->push_back((*jt).as_string()); |