Merge pull request #38 from fhrach4/add-matrix-synapse-support
Add support for URL previews for matrix Synapse homeservers
This commit is contained in:
commit
4aa2309860
@ -31,6 +31,7 @@ generate_embed_user_agents = [
|
|||||||
"Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)",
|
"Mozilla/5.0 (compatible; Discordbot/2.0; +https://discordapp.com)",
|
||||||
"TelegramBot (like TwitterBot)",
|
"TelegramBot (like TwitterBot)",
|
||||||
"Mozilla/5.0 (compatible; January/1.0; +https://gitlab.insrt.uk/revolt/january)",
|
"Mozilla/5.0 (compatible; January/1.0; +https://gitlab.insrt.uk/revolt/january)",
|
||||||
|
"Synapse (bot; +https://github.com/matrix-org/synapse)",
|
||||||
"test"]
|
"test"]
|
||||||
|
|
||||||
@app.route('/') # If the useragent is discord, return the embed, if not, redirect to configured repo directly
|
@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