Small adjustment

This commit is contained in:
jeancf 2023-06-28 14:58:02 +02:00
parent 3732392dbf
commit 23d897f42c

View File

@ -976,13 +976,13 @@ def main(argv):
# Add footer with link to original tweet
if TOML['options']['remove_original_tweet_ref'] is False:
if TOML['options']['footer'] != '':
tweet_text += '\nOriginal tweet : ' + substitute_source(full_status_url)
tweet_text += '\nOriginal tweet: ' + substitute_source(full_status_url)
else:
tweet_text += '\n\nOriginal tweet : ' + substitute_source(full_status_url)
tweet_text += '\n\nOriginal tweet: ' + substitute_source(full_status_url)
# Check what timestamp would look like
logging.debug("TEST TIMESTAMP")
logging.debug(tweet_text + ' ' + time_string)
logging.debug(tweet_text + ' (' + time_string + ')')
# If no media was specifically added in the tweet, try to get the first picture
# with "twitter:image" meta tag in first linked page in tweet text