facebook: Fix setting channel topics (tid=t_id.1234 is no longer valid)

Sun, 25 Jun 2017 04:45:40 -0300

author
dx <dx@dxzone.com.ar>
date
Sun, 25 Jun 2017 04:45:40 -0300
changeset 38398
a2fe2e8fe876
parent 38397
046138091ee2
child 38399
d81c2350fc21

facebook: Fix setting channel topics (tid=t_id.1234 is no longer valid)

The server expects the tid parameter to be just the tid now.

libpurple/protocols/facebook/api.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/facebook/api.c	Sun Jun 25 04:44:19 2017 -0300
+++ b/libpurple/protocols/facebook/api.c	Sun Jun 25 04:45:40 2017 -0300
@@ -3179,7 +3179,7 @@
 
 	prms = fb_http_params_new();
 	fb_http_params_set_str(prms, "name", topic);
-	fb_http_params_set_strf(prms, "tid", "t_id.%" FB_ID_FORMAT, tid);
+	fb_http_params_set_int(prms, "tid", tid);
 	fb_api_http_req(api, FB_API_URL_TOPIC, "setThreadName",
 	                "messaging.setthreadname", prms,
 			fb_api_cb_http_bool);

mercurial