replace tracking by mastodon

This commit is contained in:
cquest 2025-01-24 14:58:16 +01:00
parent dcbede4f35
commit 8bd6de75af

View File

@ -270,6 +270,7 @@ if source[:4] == 'http':
continue continue
c = c + '\n\n' + t.link 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 # replace links to reddit by libreddit ones
c = c.replace('old.reddit.com', 'libreddit.net') c = c.replace('old.reddit.com', 'libreddit.net')