Welcome to mirror list, hosted at ThFree Co, Russian Federation.

12-http-agent.patch « patches - github.com/dequis/purple-facebook.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d2a538fce18dab9d9d077b7048dfeba3a3697540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- a/libpurple/protocols/facebook/api.h	2017-03-30 02:23:36.028335349 -0300
+++ b/libpurple/protocols/facebook/api.h	2017-03-30 02:24:46.796992132 -0300
@@ -91,11 +91,28 @@
 #define FB_API_SECRET  "374e60f8b9bb6b8cbb30f78030438895"
 
 /**
+ * FB_ORCA_AGENT
+ *
+ * The part of the user agent that looks like the official client, since the
+ * server started checking this.
+ *
+ * We announce ourselves as compatible with Orca-Android 38.0 since that's the
+ * closest version to the last major protocol update. Some parts use older
+ * features, some parts use newer ones.
+ *
+ * Fun fact: this version sends old-style MQIsdp CONNECT messages for the first
+ * connection, with JSON payloads instead of compressed thrift.
+ *
+ */
+
+#define FB_ORCA_AGENT "[FBAN/Orca-Android;FBAV/38.0.0.22.155;FBBV/14477681]"
+
+/**
  * FB_API_AGENT:
  *
  * The HTTP User-Agent header.
  */
-#define FB_API_AGENT  "Facebook plugin / Purple / 0.9"
+#define FB_API_AGENT  "Facebook plugin / Purple / 0.9.3 " FB_ORCA_AGENT
 
 /**
  * FB_API_MQTT_AGENT
@@ -110,7 +127,7 @@
  * connection, with JSON payloads instead of compressed thrift.
  */
 
-#define FB_API_MQTT_AGENT FB_API_AGENT " [FBAN/Orca-Android;FBAV/38.0.0.22.155;FBBV/14477681]"
+#define FB_API_MQTT_AGENT FB_API_AGENT
 
 /**
  * FB_API_URL_ATTACH: