From 8b2d266f82516771cff401605aad14fecda85f97 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 8 Jan 2018 22:35:42 +0300 Subject: forgotten, but useless urlEncode --- protocols/FacebookRM/src/messages.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 794225de2a..5147feefc0 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -248,10 +248,10 @@ HttpRequest* facebook_client::sendMessageRequest( // TODO: For sending GIF images instead of "sticker_id=" there is "image_ids[0]=", otherwise it's same p->Body << "body=" - << CHAR_PARAM("sticker_id", ptrA(mir_urlEncode(message_text.substr(10, message_text.length() - 10 - 2).c_str()))) + << CHAR_PARAM("sticker_id", message_text.substr(10, message_text.length() - 10 - 2).c_str()) << BOOL_PARAM("has_attachment", true); else - p->Body << CHAR_PARAM("body", ptrA(mir_urlEncode(messageText))) << BOOL_PARAM("has_attachment", false); + p->Body << CHAR_PARAM("body", messageText) << BOOL_PARAM("has_attachment", false); p->Body << INT_PARAM("ephemeral_ttl_mode", 0) -- cgit v1.2.3