mirror of
https://gitlab.com/jeancf/twoot.git
synced 2024-11-27 14:01:13 +00:00
Modify status_post. Code complete.
This commit is contained in:
parent
8bd8aeec29
commit
b227c1bb04
4
twoot.py
4
twoot.py
|
@ -1204,9 +1204,9 @@ def main(argv):
|
|||
toot = {}
|
||||
try:
|
||||
if len(media_ids) == 0:
|
||||
toot = mastodon.status_post(tweet['tweet_text'])
|
||||
toot = mastodon.status_post(tweet['tweet_text'], replied_to_toot)
|
||||
else:
|
||||
toot = mastodon.status_post(tweet['tweet_text'], media_ids=media_ids)
|
||||
toot = mastodon.status_post(tweet['tweet_text'], replied_to_toot, media_ids=media_ids)
|
||||
|
||||
except MastodonAPIError:
|
||||
# Assuming this is an:
|
||||
|
|
Loading…
Reference in New Issue
Block a user