Correct display of link to quoted tweet

This commit is contained in:
JCF 2023-07-24 07:38:11 +00:00
parent b09ee35f5c
commit 47d17f4cc5

View File

@ -1053,7 +1053,7 @@ def main(argv):
# Process quote: append link to tweet_text
quote_div = status.find('a', class_='quote-link')
if quote_div is not None:
tweet_text += substitute_source('\n\nhttps://twitter.com' + quote_div.get('href').strip('#m'))
tweet_text += '\n\n' + substitute_source('https://twitter.com' + quote_div.get('href').strip('#m'))
# Process card : extract image if necessary
card_class = status.find('a', class_='card-container')