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

Invalid Mastodon handle results in https://undefined/@username URL #3363

Open
bittner opened this issue Mar 15, 2023 · 1 comment
Open

Invalid Mastodon handle results in https://undefined/@username URL #3363

bittner opened this issue Mar 15, 2023 · 1 comment
Labels

Comments

@bittner
Copy link

bittner commented Mar 15, 2023

The edit form of a submission (talk or workshop) has a "Mastodon handle" input field.

As someone becoming less experienced with social media every day, I'm tempted to enter only - what I think is - my user name in that field (in my case peterbittner). Interestingly, this results in a URL https://undefined/@peterbittner on the public page of my talk (https://pycon.it/it/event/... below the speaker photo).

Parsing of Mastodon handle

I failed to find the related code in this repository, but it looks like the "handle" content is expected to be of:

  • either https://<platform>@<username>
  • or <username>@<platform>
  • or @<username>@<platform> (which is what is displayed on Mastodon.social below one's name in the user profile)

... and the two parts <platform> and <username> are being parsed out of that string accordingly to then construct the target URL.

Can we add form validation?

Unfortunately, the form doesn't warn you about your potentially wrong handle. It were nice if it would, to avoid https://undefined/@username for everyone.

@marcoacierno
Copy link
Member

Hello!

Thanks for the report, adding validation is a good idea!

I will have a look later today

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Backlog
Development

No branches or pull requests

2 participants