Mastodon boxing for Miaou
JavaScript CSS Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
plugin
LICENSE
README.md
install.sh

README.md

miaou.mastodon

Mastodon boxing for Miaou

Chat on Miaou Chat on Miaou

What it does

A toot URL in a Miaou message is replaced with a rendering of that toot:

Boxed Toot

How it works

The rendering is built using the Atom XML page.

The resulting XML is rendered in HTML and this HTML is sent to all browsers rendering the Miaou message.

Determining the URL of this Atom page depends on the URL format:

Remote Mastodon Instances

When the toot URL is in the format https://<domain>/users/<user>/updates/<num>, the boxer just adds .atom.

Local Mastodon Instance

When the toot URL is in the format https://<domain>/@<user>/<num>, then the <num> isn't the right one.

In such a case the boxer sends a HEAD request to that URL and looks for the link header of type application/atom+xml which can be found in the answer.