diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:22:54 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-11-03 19:22:54 +0000 |
commit | e3cea4cc5c8f844fedbccd76077a4b15897f9b34 (patch) | |
tree | 0c0939380caea5a5900328b19fdd3cc80c8ec6b3 /protocols/FacebookRM/src/messages.cpp | |
parent | f1c8069fba15a042ba2824ee6dc48a891f8ccd2d (diff) |
Facebook: No more post_form_id. Elliot! No more!
git-svn-id: http://svn.miranda-ng.org/main/trunk@2169 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 596fab0424..9e962cb100 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -154,16 +154,11 @@ void FacebookProto::SendTypingWorker(void *p) DBVARIANT dbv;
if ( !DBGetContactSettingString(typing->hContact,m_szModuleName,FACEBOOK_KEY_ID,&dbv))
{
- std::string data = "typ=";
- data += ( typing->status == PROTOTYPE_SELFTYPING_ON ) ? "1" : "0"; // PROTOTYPE_SELFTYPING_OFF
- data += "&to=";
- data += dbv.pszVal;
- data += "&source=mercury-chat";
+ std::string data = "&source=mercury-chat";
+ data += (typing->status == PROTOTYPE_SELFTYPING_ON ? "&typ=1" : "&typ=0"); // PROTOTYPE_SELFTYPING_OFF
+ data += "&to=" + std::string(dbv.pszVal);
data += "&fb_dtsg=" + facy.dtsg_;
- data += "&post_form_id=";
- data += ( facy.post_form_id_.length( )) ? facy.post_form_id_ : "0";
- data += "&post_form_id_source=AsyncRequest&lsd=&phstamp=0&__user=";
- data += facy.self_.user_id;
+ data += "&lsd=&phstamp=0&__user=" + facy.self_.user_id;
http::response resp = facy.flap( FACEBOOK_REQUEST_TYPING_SEND, &data );
|