diff options
author | dequis <dx@dxzone.com.ar> | 2017-07-22 08:03:44 +0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2017-07-22 08:03:44 +0300 |
commit | c4e8920517e4829039717e2c39448ba0d6f87f8d (patch) | |
tree | 3e7e553c1239cd5dfc9ac595fc2eb8bfa9713b7d | |
parent | c40d9fade51f4aa08adacf0ebe81d79d2650ffb3 (diff) |
Try turning attachment urls into httpsmystery-meat-1
-rw-r--r-- | patches/99-mystery-meat.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/patches/99-mystery-meat.patch b/patches/99-mystery-meat.patch new file mode 100644 index 0000000..4fee9df --- /dev/null +++ b/patches/99-mystery-meat.patch @@ -0,0 +1,17 @@ +--- a/libpurple/protocols/facebook/api.c 2017-07-22 01:53:30.927778155 -0300 ++++ b/libpurple/protocols/facebook/api.c 2017-07-22 02:00:46.598640341 -0300 +@@ -1894,6 +1894,14 @@ + + g_free(name); + msg->text = fb_json_values_next_str_dup(values, NULL); ++ ++ if (g_str_has_prefix(msg->text, "http:")) { ++ char *orig = msg->text; ++ msg->text = g_strconcat("https", orig + 4, NULL); ++ g_free(orig); ++ } ++ ++ fb_util_debug(FB_UTIL_DEBUG_INFO, "Attachment url: %s", msg->text); + msgs = g_slist_prepend(msgs, msg); + + g_signal_emit_by_name(api, "messages", msgs); |