Merge pull request #38 from fhrach4/add-matrix-synapse-support

Add support for URL previews for matrix Synapse homeservers
This commit is contained in:
Dylan 2022-11-06 18:35:15 +00:00 committed by GitHub
commit 4aa2309860
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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