Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update postprocessing.go to group 'x.com' with 'twitter.com' domains #5637

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

L3GW0RK
Copy link

@L3GW0RK L3GW0RK commented Jan 30, 2025

added the 'x.com' domain to the twitter handle recognition in the performer window. cleans things up a bit with urls. tested, working.

added the 'x.com' domain to the twitter handle recognition in the performer window. cleans things up a bit with urls. tested, working.
@WithoutPants
Copy link
Collaborator

It's not really clear to me what this is fixing.

The code you changed transforms twitter profile names; if the input string is xxx, then it currently becomes https://twitter.com/xxx. If the input string is already a URL, then it is left unchanged.

From my static code inspection, I believe that the only different behaviour is if the input field starts with x.com, in which case the call to URLFromHandle is changed to provide https://x.com as the base URL instead. The only way that this would be triggered would be if the input field is x.com/xxx, but the result would be https://x.com/x.com/xxx.

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.

2 participants