Skip to content

Conversation

@zzak
Copy link

@zzak zzak commented Jan 3, 2023

No description provided.

@zzak zzak marked this pull request as draft January 3, 2023 04:08
)
%>

<%= mastodon_handle(user) %>
Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it possible to generate link using mastodon handle? 🤔

Copy link
Author

Choose a reason for hiding this comment

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

@simi I wasn't able to find a way to do this, it's also weird if we just let anyone put any link they want on the profile? We probably have to sanitize it, etc.

Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't enough to just split on last @ and reverse join with / (and prepending https protocol)?

@simi
Copy link
Contributor

simi commented Apr 23, 2023

@zzak ad mastodon handle it seems I was right according to docs. The only unknown part is the protocol (http/https), but we can make it into note we support only secured HTTPS servers.

Would you like to continue on this? Alternatively just ping me and I can do my best to finish this feature.

@zzak
Copy link
Author

zzak commented Apr 28, 2023

@simi Thanks for the ping, have been busy with other stuff but I may pick this back up. This also seems like a really good bite-sized feature for an early contributor, happy to hand it over in that case!

@segiddins
Copy link
Contributor

See rubygems/rfcs#51

@zzak zzak closed this Mar 10, 2025
@github-project-automation github-project-automation bot moved this from Hold to Merged in RubyGems.org Pull Requests Mar 10, 2025
@zzak zzak deleted the mastodon-handle branch March 10, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants