Add support for URL previews for matrix Synapse homeservers
This commit is contained in:
parent
d31ff7957f
commit
6d242abbbc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user