ready for github

This commit is contained in:
Jeff MacKinnon 2022-05-11 17:22:27 -03:00
parent d5e0cec239
commit 103ee709b8
2 changed files with 3 additions and 4 deletions

View file

@ -3,8 +3,8 @@ include_once 'MastodonBotPHP/Mastodon.php';
/* The setup */
$token = 'NeA2lgL7EeKQHoYcYAhOdBKtI4e9kDlrqB5f-V4kEUI'; // Token of your Mastodon welcome bot account
$base_url = 'https://bluenoser.me'; // URL of your instance (Do not include '/' at the end.)
$token = 'addtokenhere'; // Token of your Mastodon welcome bot account
$base_url = 'instanceURL'; // URL of your instance (Do not include '/' at the end.)
$visibility = 'public'; // "Direct" means sending welcome message as a private message. The four tiers of visibility for toots are Public , Unlisted, Private, and Direct (default)
$language = 'en'; // en for English, zh for Chinese, etc.

View file

@ -13,8 +13,7 @@ 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 %}
{% endif %}
```
I need to make it prettier, but this is looking good so far.