From bb165a61b65b26766627a7cda22b35660a378c5d Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Tue, 16 Jan 2024 08:35:48 -0800 Subject: [PATCH] Strip ?s from twitter links --- app/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/bot.py b/app/bot.py index f86614ef..25f84da6 100755 --- a/app/bot.py +++ b/app/bot.py @@ -129,7 +129,9 @@ async def fix_social_media_links(ctx): "%s said:\n%s" % ( ctx.author.mention, - ctx.content.replace(k, "https://%s.com" % correct_domains[k]), + ctx.content.replace(k, "https://%s.com" % correct_domains[k]).split( + "?s" + )[0], ) ) await ctx.delete()