DEV Community

Michael Kohl
Michael Kohl

Posted on

Changelog: Mastodon URLs in profile

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 (18)

Collapse
nickytonline profile image
Nick Taylor (he/him) • Edited on

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 • Edited on

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
Nick Taylor (he/him)

Toot Cafe is on the way, github.com/thepracticaldev/dev.to/...

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.

Collapse
andypiper profile image
Andy Piper

Curious, and recognising that this is a very old post now, but as I revive my Fediverse presence... I am not seeing the option to add my Mastodon URL to the profile on Forem / DEV. Was this taken away at some point?

Collapse
citizen428 profile image
Michael Kohl Author

It was. This was part of the push to a generalized forem/forem, where Mastodon URLs may not make much sense is less techy communities. But there will eventually be a possibility for Forem admins to add custom profile fields, so you may see this option again on different instances. However, since I no longer work for DEV/Forem I can't give you a timeline for the rollout of admin-defined profile fields.

Collapse
andypiper profile image
Andy Piper

Sure, absolutely understand the latter part - was just looking to figure out where things are (mostly because I’m starting to invest more personally into Mastodon etc, and I’m a fan of Forem). I might see whether Ben and team have any vision statements around the Fediverse at the moment, but I’m aware there has been a lot of change since you wrote this post :-) Thanks!

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.