Dekkia's Blog

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: 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.

Screenshot of this thread in unroll.ninja on a desktop browser.
Screenshot of this thread in unroll.ninja on a desktop browser.
Screenshot of this thread in unroll.ninja on a simulated phone.
Screenshot of this thread in unroll.ninja on a simulated phone.

19:29:43

You can even share links to the generated page:

unroll.ninja/thread/?uri=https

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

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.

A boring-looking "rich preview" with just the domain name, the website name, and a generic page-icon.
A boring-looking "rich preview" with just the domain name, the website name, and a generic page-icon.
The new and improved rich preview with the page logo (the fediverse logo in various shades of purple) the domain, the page Name, and a small description saying "A Browser App that allows you to unroll Mastodon threads int..."
The new and improved rich preview with the page logo (the fediverse logo in various shades of purple) the domain, the page Name, and a small description saying "A Browser App that allows you to unroll Mastodon threads int..."

16:32:17

Probably wouldn't have figured it out without this resource:

box464.com/posts/mastodon-prev

17:45:12

Recursion!

unroll.ninja/thread/?uri=https