Mastodon: Ability to embed post and replies in static sites

Created on 20 Aug 2018  ·  2Comments  ·  Source: tootsuite/mastodon

Mastodon could make a wonderful alternative to embeddable commenting systems (e.g. Disqus) that can be used in static sites.

Ideally the static site should use a simple iframe.
The iframe served by Mastodon could show a discussion thread and a form to log in a comment.
If JS is disabled or blocked it could show a link to the Mastodon site.

Related to #1065 #6094

Thanks!

suggestion

All 2 comments

Ideally it should also have a way that the site could make an autopost (or let MSDN get posts via AP or RSS feed) so that you can have the commenting system fully automated. Discourse has such a system, see: https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963

This should be relatively straightforward to do if you write a small javascript component to read from the Mastodon API, assuming the server allows CORS. You just need to pass as a parameter the toot id to the GET /api/v1/statuses/:id/context REST API method.

I might do it myself and share here when I get the time.

Was this page helpful?
0 / 5 - 0 ratings