From 8bd6de75af54125bc222c3e23b0da8c8921489d1 Mon Sep 17 00:00:00 2001 From: cquest Date: Fri, 24 Jan 2025 14:58:16 +0100 Subject: [PATCH] replace tracking by mastodon --- tootbot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tootbot.py b/tootbot.py index be6f1a9..30d9f11 100755 --- a/tootbot.py +++ b/tootbot.py @@ -270,6 +270,7 @@ if source[:4] == 'http': continue c = c + '\n\n' + t.link + c = re.sub(r'(\?|&)utm.*$', r'\1utm_medium=Social&utm_source=Mastodon', c) # replace links to reddit by libreddit ones c = c.replace('old.reddit.com', 'libreddit.net')