dgp1130 / blog

Source repository for my personal blog.
https://blog.dwac.dev
2 stars 2 forks source link

Share to Mastodon #57

Open dgp1130 opened 1 year ago

dgp1130 commented 1 year ago

Given my recent move away from Twitter, I should update the share icons to include a "share to Mastodon" link.

dgp1130 commented 3 months ago

Some notable prior art in this area: https://palant.info/2023/10/19/implementing-a-share-on-mastodon-button-for-a-blog/

I think it's a bit too heavyweight visually for something as simple as a share link, but it could maybe be streamlined a bit. The main problem is that we need to support an arbitrarily large number of potential Mastodon instances rather than redirecting to a single Twitter. The author there uses Fediverse Observer to query a list of instances, filter to active ones, and then provide autocomplete which doesn't seem too bad an approach (though the list is a bit large IMHO). They do support a bunch of Fediverse products, not just Mastodon, so I could probably filter even more from there if I don't want to go down the full Fediverse rabbit hole just yet.