This plugin makes Jan Boddez’s Import From Mastodon WordPress plugin play nicely with the Post Kinds and Syndication Links IndieWeb plugins.
- Adds a syndication link to a toot or reply when it’s imported
- Sets the correct posts kind for favourites (“likes”), boosts (“reposts”) and replies
- Saves microformat data for each post kind
- Clean up the post content (because we are storing the microformat data, when can use Post Kinds to display it instead of having it on the content)
- The content of boosts and favourites is removed, only a link and some meta data on the toot is kept (author, date, etc.)
- Titles are removed as well, as it seems unnecessary for such short content
- Because of the above, some posts end up having no title or content, just the microformat data stored in the post meta
- Replies to your own toots are also removed; ideally these should be backfed to your site and published as comments on the original post (using something like Brid.gy, for instance)
Please bear in mind this was written for personal use and there might be errors. For this to work you’ll obviously need the Import From Mastodon, Post Kinds and Syndication Links plugins.
Just download the ZIP file, unzip it and upload the import-from-mastodon-indieweb-addons.php
file to wp-content/mu-plugins
(if you don’t see a mu-plugins
folder you can just create it) and unzip.
That’s it! Since this is a Must Use Plugin it will be automatically enabled.
Huge thanks to Jan Boddez, who built the Import From Mastodon plugin, provided snippets and pointed me in the right direction.