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 ;-)

Did you find this post useful? Show some love!
DISCUSSION (15)

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 ;)

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.

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

Awesome 🤩

But I get the message Mastodon url is not a whitelisted Mastodon instance for ruhr.social/@tim

Will it maybe better to accept the normal Mastodon notation (@tim@ruhr.social)?

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

Yes. Here the URL I added:

https://ruhr.social/@tim

The only message which I get is:

Mastodon url is not a whitelisted Mastodon instance

PR created:

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

But I also think that whitelisting is not a good idea. There are existing many instances with only one account. E.g. mastodon.ar.al/about

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.

Classic DEV Post from Jul 27

Python 2 VS Python 3

There can be only one.

Michael Kohl
Your friendly neighborhood anarcho-cynicalist. Taming bits and herding developers (aka engineering lead). ¯\_(ツ)_/¯ and (╯°□°)╯︵ ┻━┻) are my two natural states.
Join dev.to ❤️

Signing up takes about 30 seconds.

30 seconds to grow your network and level up as a developer.