I’m experimenting with Federating replies from Mastodon directly into my blog post page itself, displayed as old-school comments underneath the post, and…I kind of like it?
Conversation
Notices
-
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Monday, 11-Mar-2024 08:23:08 JST Paul Cantrell -
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Monday, 11-Mar-2024 08:30:06 JST Paul Cantrell Because I know half a dozen of you are wondering:
- Doing this bc it’s a static site. Could bolt on a comment form with JS or smth, but…the conversation is here!
- Using the Mastodon API to grab the reply tree for Masto posts I manually identify as being associated w/the blog post.
- It’s moderated: replies allow-listed by me.
- It’s a static site, but script can re-fetch. Thus deleted posts, renamed accounts, new avis, etc. all eventually do get updated.
- No, it’s not ActivityPub aware.
-
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Monday, 11-Mar-2024 09:31:21 JST Paul Cantrell @voltagex
I do mean to share the source for the whole site at some point, although since it’s built on a completely bespoke static site generator that’s still undergoing rapid evolution, releasing it all seems…counterproductive.I could probably pull out the comment extractor, though. Wouldn’t work without its context, but would serve for a glimpse. Will do that when I have some time.
-
Embed this notice
Adam ♿ (voltagex@aus.social)'s status on Monday, 11-Mar-2024 09:31:22 JST Adam ♿ @inthehands any chance of sneaking a peek at the code?
-
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Monday, 11-Mar-2024 10:41:17 JST Paul Cantrell @voltagex Here you go: https://github.com/pcantrell/masto-comment-fetcher
The code’s not going to run without the enclosing project, but it should be enough to scratch the curiosity itch. Actually fetching the posts doesn’t take much code; as usual, most of the work ends up being data cleaning and collating.
-
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Monday, 11-Mar-2024 10:47:38 JST Paul Cantrell @voltagex
It’s a tricky question: where does “federated” end and “bot” begin? -
Embed this notice
Adam ♿ (voltagex@aus.social)'s status on Monday, 11-Mar-2024 10:47:39 JST Adam ♿ @inthehands that is a lot simpler than I was thinking! Thanks.
I wonder if I need to look up the user's profile to check if they have NoBot or NoIndex in there.
-
Embed this notice
Paul Cantrell (inthehands@hachyderm.io)'s status on Monday, 11-Mar-2024 11:18:07 JST Paul Cantrell @voltagex My own thought on the matter is that what I’m doing is essentially a read-only Mastodon client, and requires no special permissions beyond what any other client already has. It doesn’t make anything more public than it already was, generates no notifications, preserves content as is (modulo formatting), and preserves attribution and context. Still, I’m testing the waters carefully.
-
Embed this notice
Adam ♿ (voltagex@aus.social)'s status on Monday, 11-Mar-2024 11:18:08 JST Adam ♿ @inthehands I think I'd use a specific account and hashtag to collect comments, then people are opting in if they interact with it (although what do you do when people are tagged in?)
-
Embed this notice