Skip to content

Conversation

oneiros
Copy link
Contributor

@oneiros oneiros commented Sep 13, 2024

Removes http:// and https:// from attribution domains. Some users already tried to enter domains with a protocol. This is not necessary and did not work.

This change will simply discard the protocol before the domains are being saved.

@Gargron Gargron enabled auto-merge September 13, 2024 11:30
@Gargron Gargron added this pull request to the merge queue Sep 13, 2024
Merged via the queue into main with commit c1b2c4f Sep 13, 2024
29 checks passed
@Gargron Gargron deleted the fixes/strip-protocol-from-attribution-domains branch September 13, 2024 11:47
.strip
.delete_prefix('http://')
.delete_prefix('https://')
.delete_prefix('*.')
Copy link
Contributor

Choose a reason for hiding this comment

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

This would probably be good logic to adopt for DomainBlocks too.

nileane pushed a commit to nileane/mastodon that referenced this pull request Sep 17, 2024
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.

3 participants