mirror of
https://github.com/cquest/tootbot.git
synced 2025-02-23 10:58:25 +00:00
replace tracking by mastodon
This commit is contained in:
parent
dcbede4f35
commit
8bd6de75af
@ -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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user