mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-23 20:11:11 +00:00
Use account visibility setting for toots
This commit is contained in:
parent
fa11764b84
commit
6404296631
4
twoot.py
4
twoot.py
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user