Modify status_post. Code complete.

This commit is contained in:
jeancf 2023-07-16 12:56:17 +02:00
parent 8bd8aeec29
commit b227c1bb04

View File

@ -1204,9 +1204,9 @@ def main(argv):
toot = {} toot = {}
try: try:
if len(media_ids) == 0: if len(media_ids) == 0:
toot = mastodon.status_post(tweet['tweet_text']) toot = mastodon.status_post(tweet['tweet_text'], replied_to_toot)
else: 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: except MastodonAPIError:
# Assuming this is an: # Assuming this is an: