From 851a7084a69e7e2ecb02e5fcb88766ac07c9c20c Mon Sep 17 00:00:00 2001 From: Chloe Carver-Brown Date: Thu, 26 May 2022 19:12:36 +0100 Subject: [PATCH] im legally blind Signed-off-by: Chloe Carver-Brown --- twitfix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twitfix.py b/twitfix.py index 0b90489..4c7cd7d 100644 --- a/twitfix.py +++ b/twitfix.py @@ -349,7 +349,7 @@ def twitfix(sub_path): return embed_video(clean, image) elif ( - request.url.endswith("/1p", "/2p", "/3p", "/4p", "%2F1p", "%2F2p", "%2F3p", "%2F4p") + request.url.endswith(("/1p", "/2p", "/3p", "/4p", "%2F1p", "%2F2p", "%2F3p", "%2F4p")) ): twitter_url = "https://twitter.com/" + sub_path