Skip to content

Adds some IndieWeb improvements to Jan Boddez's Import From Mastodon WordPress plugin.

License

Notifications You must be signed in to change notification settings

diniscorreia/import-from-mastodon-indieweb-addons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Import From Mastodon IndieWeb Addons

This plugin makes Jan Boddez’s Import From Mastodon WordPress plugin play nicely with the Post Kinds and Syndication Links IndieWeb plugins.

What does it do?

  • 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)

Some opinionated choices

  • 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)

Installation

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.

Acknowledgements

Huge thanks to Jan Boddez, who built the Import From Mastodon plugin, provided snippets and pointed me in the right direction.

About

Adds some IndieWeb improvements to Jan Boddez's Import From Mastodon WordPress plugin.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages