No description
Find a file
2022-05-11 17:22:27 -03:00
MastodonBotPHP It works 2022-05-11 17:12:37 -03:00
bot.php ready for github 2022-05-11 17:22:27 -03:00
comment_record.txt It works 2022-05-11 17:12:37 -03:00
readme.md ready for github 2022-05-11 17:22:27 -03:00

Here is the Bot for your Mastodon Comments

This bot is 100% for creating a post for commenting on an article on your blog. I built this specifically for my pelican SSG based site.

To make work on your pelican site in the pelicanconf.py add

MASTODON_COMMENTS = True

Then you just need to add this to your theme:

{% if MASTODON_COMMENTS is sameas True %}
    <p><a href="{{ SITEURL }}/mastodon-comments/bot.php?title={{ article.title|striptags }}&url={{ SITEURL }}/{{ article.url }}{% if article.photo_image %}&image=../{{ article.photo_image[1] }}{% endif %}">Click Here to Comment on Mastodon.</a></p>
{% endif %}

I need to make it prettier, but this is looking good so far.

If you use the photos plugin you can remove the image variable.