unroll.ninja
2024-04-13, 19:20:29
Turns out that there isn't a good way to "unroll" Mastodon threads.
The only option I could find is based on a bot-account on a normal Mastodon instance.
19:21:34
But if the post you want to unroll hasn't made it to that instance yet, or the instance isn't federated with the source instance you're out of luck.
19:21:52
So I made my own.
Behold: https://unroll.ninja
19:22:29
So far It only works with public threads on Mastodon.
19:24:16
It's limited to Mastodon because I'm using the Mastodon API instead of ActivityPub to get the data.
Based on my understanding, ActivityPub has no way to get a specific post from a server.
19:25:08
But since the target demographic for this thing is me, I guess that's fine for now.
19:27:42
For a one-day project, it came out pretty well.
19:29:43
You can even share links to the generated page:
https://unroll.ninja/thread/?uri=https%3A%2F%2Fdekkia.com&id=112265529248538476
19:31:42
The long-term goal for me is to make some sort of link collection where I link to the stuff I made and documented on here.
Currently, discoverability isn't great.
That's what I get for using Mastodon as a blog.
19:34:23
Maybe I should create a bot that works like the one on the website formerly known as twitter.
2024-04-19, 16:28:13
https://unroll.ninja now has a working preview image when linked.
I don't understand why social media (Mastodon included) can't just use the favicon or something.
16:31:15
Here's the comparison.
16:32:17
Probably wouldn't have figured it out without this resource:
17:45:12
Recursion!
https://unroll.ninja/thread/?uri=https%3A%2F%2Fdekkia.com&id=112298841695526261