From b227c1bb041a2c08a6b73a08ac5a1db5b83c08a0 Mon Sep 17 00:00:00 2001 From: jeancf Date: Sun, 16 Jul 2023 12:56:17 +0200 Subject: [PATCH] Modify status_post. Code complete. --- twoot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twoot.py b/twoot.py index c2f13fe..71935e2 100755 --- a/twoot.py +++ b/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: