summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/history.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-08 22:44:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-08 22:44:04 +0300
commit35d1e8374950babd966cab3b3a41cdabac99afd5 (patch)
tree58987e3b8c0fc426f6b7c92c78faaa3d6786f488 /protocols/FacebookRM/src/history.cpp
parent2fea2fa6d9c3d95822d55d93325bbb7f47f0e80d (diff)
perhaps the last one
Diffstat (limited to 'protocols/FacebookRM/src/history.cpp')
-rw-r--r--protocols/FacebookRM/src/history.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/history.cpp b/protocols/FacebookRM/src/history.cpp
index 454e3e8593..eb1e480766 100644
--- a/protocols/FacebookRM/src/history.cpp
+++ b/protocols/FacebookRM/src/history.cpp
@@ -84,14 +84,13 @@ HttpRequest* facebook_client::threadInfoRequest(const LIST<char> &ids, int offse
std::string id_ = ids[i]; // FIXME: Rewrite this without std::string...
if (id_.substr(0, 3) == "id.")
id_ = id_.substr(3);
- ptrA idEncoded(mir_urlEncode(id_.c_str()));
// Load messages
- CMStringA begin(::FORMAT, "messages[%s][%s]", "thread_fbids", idEncoded);
+ CMStringA begin(::FORMAT, "messages[%s][%s]", "thread_fbids", ptrA(mir_urlEncode(id_.c_str())).get());
p->Body
<< INT_PARAM(CMStringA(::FORMAT, "%s[offset]", begin.c_str()), offset)
<< INT_PARAM(CMStringA(::FORMAT, "%s[limit]", begin.c_str()), limit)
- << CHAR_PARAM(CMStringA(::FORMAT, "threads[%s][%i]", "thread_fbids", i), idEncoded);
+ << CHAR_PARAM(CMStringA(::FORMAT, "threads[%s][%i]", "thread_fbids", i), id_.c_str());
}
return p;