diff --git a/src/newsreader/news/collection/twitter.py b/src/newsreader/news/collection/twitter.py index e7426c4..dc32ecc 100644 --- a/src/newsreader/news/collection/twitter.py +++ b/src/newsreader/news/collection/twitter.py @@ -75,22 +75,12 @@ class TwitterBuilder(PostBuilder): if "retweeted_status" in post: original_post = post["retweeted_status"] - body += urlize( - format_html( - "Original tweet: {original_post}", - original_post=urlize(original_post["full_text"], nofollow=True), - ), - nofollow=True, - ) + original_tweet = urlize(original_post["full_text"], nofollow=True) + body = f"{body}
Original tweet: {original_tweet}
" if "quoted_status" in post: original_post = post["quoted_status"] - body += urlize( - format_html( - "Quoted tweet: {original_post}", - original_post=original_post["full_text"], - ), - nofollow=True, - ) + original_tweet = urlize(original_post["full_text"], nofollow=True) + body = f"{body}
Quoted tweet: {original_tweet}
" body = self.sanitize_fragment(body)