mirror of
https://github.com/cquest/tootbot.git
synced 2024-11-23 20:11:06 +00:00
replace utm_xxx tracking to show source is Mastodon instead of removing them
This commit is contained in:
parent
d068a9f1cb
commit
1b68e9e6b4
|
@ -306,8 +306,8 @@ else:
|
||||||
# replace links to twitter by nitter ones
|
# replace links to twitter by nitter ones
|
||||||
c = c.replace('/twitter.com/', '/nitter.net/')
|
c = c.replace('/twitter.com/', '/nitter.net/')
|
||||||
|
|
||||||
# remove utm_? tracking
|
# replace utm_? tracking
|
||||||
c = re.sub('\?utm.*$', '', c)
|
c = re.sub('\?utm.*$', '?utm_medium=Social&utm_source=Mastodon', c)
|
||||||
|
|
||||||
if tags:
|
if tags:
|
||||||
c = c + '\n' + tags
|
c = c + '\n' + tags
|
||||||
|
|
Loading…
Reference in New Issue
Block a user