Use account visibility setting for toots

This commit is contained in:
jeancf 2023-01-01 13:38:08 +01:00
parent fa11764b84
commit 6404296631

View File

@ -981,9 +981,9 @@ def main(argv):
)
if len(media_ids) == 0:
toot = mastodon.status_post(tweet['tweet_text'], visibility='public')
toot = mastodon.status_post(tweet['tweet_text'])
else:
toot = mastodon.status_post(tweet['tweet_text'], media_ids=media_ids, visibility='public')
toot = mastodon.status_post(tweet['tweet_text'], media_ids=media_ids)
except MastodonError as me:
logging.error('posting ' + tweet['tweet_text'] + ' to ' + TOML['config']['mastodon_instance'] + ' Failed')