This commit is contained in:
Aevann1 2022-04-10 20:42:58 +02:00
parent efb57073e6
commit 0f256238e1
7 changed files with 30 additions and 57 deletions

View file

@ -345,8 +345,7 @@ class Comment(Base):
body = censor_slurs(body, v)
if v:
if v.teddit: body = body.replace("old.reddit.com", "teddit.net")
elif not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")
body = body.replace("old.reddit.com", v.reddit)
if v.nitter and not '/i/' in body and '/retweets' not in body: body = body.replace("www.twitter.com", "nitter.net").replace("twitter.com", "nitter.net")