replace utm_xxx tracking to show source is Mastodon instead of removing them

This commit is contained in:
cquest 2022-12-19 09:40:16 +01:00
parent d068a9f1cb
commit 1b68e9e6b4

View File

@ -306,8 +306,8 @@ else:
# replace links to twitter by nitter ones
c = c.replace('/twitter.com/', '/nitter.net/')
# remove utm_? tracking
c = re.sub('\?utm.*$', '', c)
# replace utm_? tracking
c = re.sub('\?utm.*$', '?utm_medium=Social&utm_source=Mastodon', c)
if tags:
c = c + '\n' + tags