Embed full size image

This commit is contained in:
Dylan 2024-09-05 21:55:33 +01:00
parent cfa4920466
commit 36baa5ed7b

View File

@ -77,6 +77,10 @@ def message(text):
def renderImageTweetEmbed(tweetData,image,appnameSuffix=""):
qrt = tweetData['qrt']
embedDesc = msgs.formatEmbedDesc("Image",tweetData['text'],qrt,tweetData['pollData'],msgs.genLikesDisplay(tweetData))
if image.startswith("https://pbs.twimg.com") and "?" not in image:
image = f"{image}?name=orig"
return render_template("image.html",
tweet=tweetData,
pic=[image],