loading...

Changelog: Mastodon URLs in profile

citizen428 profile image Michael Kohl ・1 min read

I'm slowly migrating from Twitter to Mastodon, so I thought it'd be nice to be able to link my account from my dev.to profile. One PR later this is now possible:

Edit Mastodon URL

Mastodon icon

Add your URL now and increase your Fediverse street cred instantly ;-)

Discussion

pic
Editor guide
Collapse
nickytonline profile image
Nick Taylor (he/him)

Hmm, I can't seem to add my URL. I get an error about an invalid url and a whitelisting issue. I guess toot.cafe needs to get whitelisted?

My URL is toot.cafe/@nickytonline

It's a legit Mastodon instance created by Nolan Lawson

I'm happy to throw up a PR of need be.

Your post also reminded me that Mastodon still exists ;)

Collapse
kdy profile image
André "Kody" Fernandes

I have the whitelisted error too for my own instance. :(

There's a lot of Mastodon instances, doing a whitelist is a terrible idea. Especially since the goal of Mastodon is to not put everyone in the same silo.

Collapse
citizen428 profile image
Michael Kohl Author

My original implementation didn't have a whitelisting mechanism, but others disagreed. See the PR for the discussion.

Thread Thread
nickytonline profile image
Nick Taylor (he/him)

Cool, will do.

Thread Thread
nickytonline profile image
Thread Thread
maestromac profile image
Mac Siri

Merged!

Collapse
citizen428 profile image
Michael Kohl Author

Are you missing the http:// bit?

Collapse
nickytonline profile image
Nick Taylor (he/him)

No, it was a fully qualified url.

ben profile image
Ben Halpern

Merged.

We can consider other longterm solutions separate from whitelisting.

In the meantime, it might make sense to include a "more info" link in the error message about how to make a PR to whitelist an instance.

citizen428 profile image
Michael Kohl Author

You can make a PR and it to the following whitelist:

github.com/thepracticaldev/dev.to/...

Thread Thread
citizen428 profile image
Michael Kohl Author

You can make a PR and add the instance to the whitelist:

github.com/thepracticaldev/dev.to/...

Collapse
citizen428 profile image
Michael Kohl Author

It's a URL, did you include the protocol part? This uses the exact same validation as the website URL.