Mastodon Replies as Comments

November 17th, 2022
comments, mastodon, tech
The comment section on most blogs is pretty minimal, with the real discussion happening elsewhere, but people who come to the post later won't see that discussion. One of the more unusual choices I've made with this blog is that instead of hosting comments here, I pull in and display comments people make on social media. While this started out as laziness (who wants to handle accounts for users?) over the years I've come around to thinking that this is how blog comments should normally work.

The biggest problem with this approach, though, is that it's in tension with the goals of the social media companies. Facebook, Twitter, etc want to keep you on their platform, and aren't especially interested in serving as the comment section of external blogs. On the other hand, this is potentially a really good fit for federated social media, and I've now made it so that ActivityPub replies to my blog posts will show up as comments here:

For a live example, here's a post from last week or you can look at the bottom of this post.

Integration was fast: if I fetch https://[server]/api/v1/statuses/[id]/context" I get all the publicly visible replies to that status that this server knows about. Then it's just a matter of extracting the relevant information, threading the responses, and fitting that into my existing comment display infrastructure (code).

This is a bit of a hack on top of Mastodon, but for blogs to participate directly in ActivityPub, where you could subscribe and comment over the protocol, you wouldn't have to implement most of what Mastodon does. That would make it much smaller, more efficient, and more maintainable. It looks like maybe someone has made a WordPress plugin for this? Has anyone tried it?

Referenced in:

Comment via: facebook, lesswrong, mastodon

Recent posts on blogs I like:

Starting With Chords

A lot of people play fiddle. Basically nobody starts by learning chords before learning melodies. But that's actually how I learned. I started with chords. One of the nice things about learning to play violin this way is that you can go busking even…

via Anna Wise's Blog Posts November 15, 2024

Stuffies

I have some stuffies and I just have a bunny. Bunny is a rabbit. Woof is a seal. My favorite stuffie is bun bun. I play with my stuffies. Sometimes I jump up with them and I roll them. I can just throw them in the air when I want to play bthululubp wi…

via Nora Wise's Blog Posts November 15, 2024

You Can Buy A Malaria Net

2024 election takes

via Thing of Things November 6, 2024

more     (via openring)