forked from rDrama/rDrama
fix tranny slur replacement in plainbody and plaintitle
parent
dc93b5b7d2
commit
3ffac6f0f6
|
@ -404,7 +404,9 @@ class Comment(Base):
|
||||||
|
|
||||||
if not body: return ""
|
if not body: return ""
|
||||||
|
|
||||||
return censor_slurs(body, v)
|
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:')
|
||||||
|
|
||||||
|
return body
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
def collapse_for_user(self, v, path):
|
def collapse_for_user(self, v, path):
|
||||||
|
|
|
@ -411,7 +411,7 @@ class Submission(Base):
|
||||||
|
|
||||||
if not body: return ""
|
if not body: return ""
|
||||||
|
|
||||||
body = censor_slurs(body, v)
|
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:')
|
||||||
|
|
||||||
body = normalize_urls_runtime(body, v)
|
body = normalize_urls_runtime(body, v)
|
||||||
return body
|
return body
|
||||||
|
@ -436,7 +436,7 @@ class Submission(Base):
|
||||||
else: return f'{CC} MEMBERS ONLY'
|
else: return f'{CC} MEMBERS ONLY'
|
||||||
else: title = self.title
|
else: title = self.title
|
||||||
|
|
||||||
title = censor_slurs(title, v)
|
title = censor_slurs(title, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:')
|
||||||
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue