From 36baa5ed7b303b5e6126351637f8d7508b36dc39 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 5 Sep 2024 21:55:33 +0100 Subject: [PATCH] Embed full size image --- twitfix.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/twitfix.py b/twitfix.py index 22ae736..fbbcc6b 100644 --- a/twitfix.py +++ b/twitfix.py @@ -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],