From 6d242abbbc18e598bb4a4e1e7190d43228388d82 Mon Sep 17 00:00:00 2001 From: Frank Hrach Date: Sun, 6 Nov 2022 00:45:03 -0400 Subject: [PATCH] Add support for URL previews for matrix Synapse homeservers --- twitfix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/twitfix.py b/twitfix.py index f407809..c703987 100644 --- a/twitfix.py +++ b/twitfix.py @@ -31,6 +31,7 @@ generate_embed_user_agents = [ "Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)", "TelegramBot (like TwitterBot)", "Mozilla/5.0 (compatible; January/1.0; +https://gitlab.insrt.uk/revolt/january)", + "Synapse (bot; +https://github.com/matrix-org/synapse)", "test"] @app.route('/') # If the useragent is discord, return the embed, if not, redirect to configured repo directly