Fixed not passing the logged user to the censor
This commit is contained in:
parent
0de6608408
commit
4cc5a554d4
4 changed files with 26 additions and 26 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue