Add config option to change toot visibility
Some instances allow bots only if their toots are unlisted, in order to avoid flooding the public timeline (makes sense).
This commit is contained in:
parent
23951ad91f
commit
0e2418ea20
4 changed files with 17 additions and 3 deletions
|
@ -44,7 +44,9 @@ class TootPost:
|
|||
access_token = self.config.get('mastodon', 'user_credentials'),
|
||||
api_base_url = self.config.get('mastodon', 'instance_url')
|
||||
)
|
||||
mastodon.toot(self.toot)
|
||||
mastodon.status_post(self.toot,
|
||||
visibility=self.config.get(
|
||||
'mastodon', 'toot_visibility', fallback='public'))
|
||||
|
||||
def storeit(self):
|
||||
'''Indicate if the tweet should be stored or not'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue