summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/process.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index f5807a512d..d6ecad05b1 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -328,15 +328,17 @@ void FacebookProto::ProcessUnreadMessage(void *p)
data += "&__a=1&__dyn=&__req=&ttstamp=0";
for (std::vector<std::string>::size_type i = 0; i < threads.size(); i++) {
+ std::string thread_id = utils::url::encode(threads[i]);
+
// request messages from thread
- data += "&messages[thread_ids][" + threads[i];
+ data += "&messages[thread_ids][" + thread_id;
data += "][offset]=" + utils::conversion::to_string(&offset, UTILS_CONV_SIGNED_NUMBER);
- data += "&messages[thread_ids][" + threads[i];
+ data += "&messages[thread_ids][" + thread_id;
data += "][limit]=" + utils::conversion::to_string(&limit, UTILS_CONV_SIGNED_NUMBER);
// request info about thread
data += "&threads[thread_ids][" + utils::conversion::to_string(&i, UTILS_CONV_UNSIGNED_NUMBER);
- data += "]=" + threads[i];
+ data += "]=" + thread_id;
}
resp = facy.flap(REQUEST_THREAD_INFO, &data);