Fixed not passing the logged user to the censor

This commit is contained in:
Yo Mama 2021-10-16 20:56:12 +02:00
parent 0de6608408
commit 4cc5a554d4
4 changed files with 26 additions and 26 deletions

View file

@ -300,7 +300,7 @@ class Comment(Base):
if not body: return ""
body = censor_slurs(body)
body = censor_slurs(body, v)
if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")
@ -326,7 +326,7 @@ class Comment(Base):
if not body: return ""
body = censor_slurs(body)
body = censor_slurs(body, v)
if v and not v.oldreddit: body = body.replace("old.reddit.com", "reddit.com")