Fix quoted/retweeted tweet not showing properly
This commit is contained in:
parent
717191617b
commit
655acaa565
1 changed files with 4 additions and 14 deletions
|
|
@ -75,22 +75,12 @@ class TwitterBuilder(PostBuilder):
|
||||||
|
|
||||||
if "retweeted_status" in post:
|
if "retweeted_status" in post:
|
||||||
original_post = post["retweeted_status"]
|
original_post = post["retweeted_status"]
|
||||||
body += urlize(
|
original_tweet = urlize(original_post["full_text"], nofollow=True)
|
||||||
format_html(
|
body = f"{body} <br><div>Original tweet: {original_tweet}</div>"
|
||||||
"Original tweet: {original_post}",
|
|
||||||
original_post=urlize(original_post["full_text"], nofollow=True),
|
|
||||||
),
|
|
||||||
nofollow=True,
|
|
||||||
)
|
|
||||||
if "quoted_status" in post:
|
if "quoted_status" in post:
|
||||||
original_post = post["quoted_status"]
|
original_post = post["quoted_status"]
|
||||||
body += urlize(
|
original_tweet = urlize(original_post["full_text"], nofollow=True)
|
||||||
format_html(
|
body = f"{body} <br><div>Quoted tweet: {original_tweet}</div>"
|
||||||
"Quoted tweet: {original_post}",
|
|
||||||
original_post=original_post["full_text"],
|
|
||||||
),
|
|
||||||
nofollow=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
body = self.sanitize_fragment(body)
|
body = self.sanitize_fragment(body)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue