From c47fc9e5bc2cc42ae6a6ee10170e7ee9d1945e06 Mon Sep 17 00:00:00 2001 From: linus2punkt0 Date: Mon, 22 Jan 2024 12:22:55 +0100 Subject: [PATCH] Fix issue with textless tweets --- output/twitter.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/output/twitter.py b/output/twitter.py index 38206d5..2f7b3e5 100644 --- a/output/twitter.py +++ b/output/twitter.py @@ -36,9 +36,6 @@ def tweet(post, reply_to_post, quoted_post, images, allowed_reply): partTwo = "" if len(post) > 280: post, partTwo = split_post(post) - # If the function does not return a post, splitting failed and we will skip this post. - if not post: - return "skipped" a = twitter_client.create_tweet(text=post, reply_settings=reply_settings, quote_tweet_id=quoted_post, in_reply_to_tweet_id=reply_to_post, media_ids=media_ids) write_log("Posted to twitter") id = a[0]["id"]