-
-
Notifications
You must be signed in to change notification settings - Fork 734
Description
Right now, discord converts twitter links when applying the standard twitter embed treatment. Our check for rich embeds determines whether an embed is autogenerated or not by checking if the embed link is present within the source message here
bot/bot/exts/filters/filtering.py
Line 520 in fa02180
| async def _has_rich_embed(msg: Message) -> Union[bool, List[discord.Embed]]: |
This is probably fixable by detecting if the link goes to twitter.com and there is a link to mobile.twitter.com with the same parameters. That may get a little tricky, but twitter links aren't complex links so perhaps simple string operations will suffice.
We may also want to consider writing an "apply_link_transformations" function that will extract and transform relative links within a message to compare against the embed.