Skip to content

Conversation

@shtlrs
Copy link
Member

@shtlrs shtlrs commented Sep 28, 2022

closes #1379

The current implementation allows to collect the URLs from the sent messages and then apply a transformation on them.

The transformation here is basically a removal of the subdomain (if it exists) because of the way Discord renders some URLs (Twitter's in particular)

Amrou Bellalouna added 3 commits September 28, 2022 08:29
We add the transformed urls to the set to account for the way discord renders relative urls in cases like Twitter's
@shtlrs shtlrs requested review from jb3 and mbaruh as code owners September 28, 2022 07:44
@shtlrs
Copy link
Member Author

shtlrs commented Sep 28, 2022

@bast0006, @scragly The floor is yours.

@shtlrs shtlrs requested review from ChrisLovering and removed request for jb3 and mbaruh September 28, 2022 12:39
Copy link
Member

@ChrisLovering ChrisLovering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and works well.

@mbaruh mbaruh enabled auto-merge October 18, 2022 16:39
@mbaruh mbaruh merged commit 312bf43 into python-discord:main Oct 18, 2022
@shtlrs shtlrs deleted the 1379-tranform-urls-upon-rich-embed-filter-application branch March 4, 2023 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust rich_embeds filter so it doesn't catch edge case

3 participants