summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-08 19:09:45 +0000
committerJune McEnroe <june@causal.agency>2020-07-08 19:09:45 +0000
commitd91f2cc8cea75f7bed114101f2395844ad1aba9a (patch)
tree7526dc9dad6b2018f36bb6d15d3256371740b570 /bin
parentTweak causal.agency for mostly no reason (diff)
downloadsrc-d91f2cc8cea75f7bed114101f2395844ad1aba9a.tar.gz
src-d91f2cc8cea75f7bed114101f2395844ad1aba9a.zip
Add facebook and twitter to title user-agent
This fixes fetching tweets again!

https://github.com/thelounge/thelounge/pull/ 3602

(Intentionally breaking the link so GitHub doesn't add a "referenced
this PR" thing?)
Diffstat (limited to '')
-rw-r--r--bin/title.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/title.c b/bin/title.c
index 24d4e8eb..a6a00832 100644
--- a/bin/title.c
+++ b/bin/title.c
@@ -158,7 +158,10 @@ int main(int argc, char *argv[]) {
 	curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, error);
 
 	curl_easy_setopt(curl, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS);
-	curl_easy_setopt(curl, CURLOPT_USERAGENT, "curl/7.54.0");
+	curl_easy_setopt(
+		curl, CURLOPT_USERAGENT,
+		"curl/7.54.0 facebookexternalhit/1.1 Twitterbot/1.0"
+	);
 	curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "");
 	curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
 	curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 3L);
a7250&follow=1'>Apply consecutive formatting codes at onceJune McEnroe 2018-09-14Add tests for formatParseJune McEnroe 2018-09-13Preview with nick in input windowJune McEnroe 2018-09-13Never send PRIVMSG to TagStatus or TagVerboseJune McEnroe 2018-09-13Move color selection to format.cJune McEnroe 2018-09-13Fix len for format->split at end of stringJune McEnroe 2018-09-13Avoid uninitialized x in uiReadJune McEnroe 2018-09-13Add IRCDefault to colors enumJune McEnroe 2018-09-13Return a format->split even at the end of the stringJune McEnroe 2018-09-13Fix weird tab-complete after commaJune McEnroe 2018-09-13Rewrite UI againJune McEnroe 2018-09-12Add note about C-oJune McEnroe 2018-09-12Use formatParse split to position input cursorJune McEnroe 2018-09-12Factor out IRC formatting parsingJune McEnroe 2018-09-11Add /help equivalent to /manJune McEnroe 2018-09-11Don't render every PM as a pingJune McEnroe 2018-09-11Add urlOpenMatchJune McEnroe 2018-09-10Depend on man.sh for chroot.tar targetJune McEnroe 2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe