Embedding your latest Mastodon / Fediverse post into your site.

For anyone who might find this helpful, I found a janky workaround to embed your latest fediverse post on your website since I couldn’t find any “official” way of doing it.

Tl;dr using JS grab the RSS feed to extract just the most recent post, then embed that.

(All runs clientside, so it is compatible with neocities or other static sites)

9 Likes

You may call it a janky workaround, but as the old saying goes “If it’s stupid but it works it ain’t stupid.”

Thanks for this!

3 Likes

If you can use PHP, I’ve also got a few lines of code that’ll do the trick.