Meh includes built-in support for integrating with Mastodon, allowing you to import replies to your Mastodon posts as comments on your site.
To set up Mastodon integration:
./meh config mastodon_account "@yourusername@instance.social"
read scope../meh config mastodon_token "your-api-token"
# Run every hour to check for new Mastodon posts and replies
0 * * * * /path/to/meh mastodon
For multi-site setups you need to set up a mastodon_account config and cron job for each site. But you can have all sites use the same account.
The Mastodon integration:
This creates a seamless bridge between discussions on your blog and on the Fediverse.
You can manually trigger the Mastodon import process at any time:
./meh mastodon
This is useful for testing or for an initial import of existing conversations.