From 8c0947f08ef53238fdb22c06079b5eadb6684397 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 15 Jun 2021 10:08:31 +0300 Subject: [PATCH] titlefetching.md: add citation Thanks koobs on #limnoria --- irc/limnoria/titlefetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/limnoria/titlefetching.md b/irc/limnoria/titlefetching.md index 7a4b2a8..df8b146 100644 --- a/irc/limnoria/titlefetching.md +++ b/irc/limnoria/titlefetching.md @@ -20,7 +20,7 @@ config supybot.protocols.http.peekSize 1048576 * sets user-agent to "Limnoria UrlPreviewBot" instead of ['Mozilla/5.0 (compatible; utils.web python module)' from 2005](https://github.com/ProgVal/Limnoria/blame/2990fcd302afdc6a3b741594017c3959fd5da2fd/src/utils/web.py#L120) * I have heard that it's bad to pretend to be something you aren't and Twitter will only give you HTMl ``s if your user-agent contains - `UrlPreviewBot` + `UrlPreviewBot` [thanks Tulir's Synapse patch](https://mau.dev/maunium/synapse/-/commit/55d926999cffee893cb4951890a33985beaf70ba) * search for html titles from the first MEGABYTE of the webpage as modern web is horrible (looking at you hs.fi & youtube.com)