From d984778d8bd516c5ef83b28298f22eaaadcffc3a Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Sun, 7 Oct 2018 16:53:36 +0530 Subject: [PATCH] Now reposing already posted tweets, since bots do that all the time. --- social.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/social.py b/social.py index 728b1c0..65af8a9 100644 --- a/social.py +++ b/social.py @@ -91,9 +91,7 @@ def tootTheTweet(tweet): tweet_check_file = Path(tweet_check_file_path) if tweet_check_file.is_file(): - helpers._info('tootTheTweet() => Tweet ' + tweet_id + ' was already posted. Skipping...') - - return False + helpers._info('tootTheTweet() => Tweet ' + tweet_id + ' was already posted. Reposting...') else: @@ -101,7 +99,7 @@ def tootTheTweet(tweet): tweet_check.write(tweet['text']) tweet_check.close() - helpers._info('tootTheTweet() => New tweet ' + tweet_id + ' => "' + tweet['text'] + '".') + helpers._info('tootTheTweet() => New tweet ' + tweet_id + ' => "' + tweet['text'] + '".') response = requests.post( url=host_instance + '/api/v1/statuses', data=data, headers=headers)