forked from rDrama/rDrama
disable the slur filter in chudrama
parent
4ecb552169
commit
780d0eb99e
|
@ -333,7 +333,9 @@ class Comment(Base):
|
||||||
body = add_options(self, body, v)
|
body = add_options(self, body, v)
|
||||||
|
|
||||||
if body:
|
if body:
|
||||||
body = censor_slurs(body, v)
|
if not (self.parent_submission and self.post.sub == 'chudrama'):
|
||||||
|
body = censor_slurs(body, v)
|
||||||
|
|
||||||
body = normalize_urls_runtime(body, v)
|
body = normalize_urls_runtime(body, v)
|
||||||
if not v or v.controversial:
|
if not v or v.controversial:
|
||||||
captured = []
|
captured = []
|
||||||
|
@ -365,8 +367,9 @@ class Comment(Base):
|
||||||
|
|
||||||
if not body: return ""
|
if not body: return ""
|
||||||
|
|
||||||
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:') \
|
if not (self.parent_submission and self.post.sub == 'chudrama'):
|
||||||
.replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseysleep:" title=":marseysleep:" src="/e/marseysleep.webp">', ':marseysleep:')
|
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:') \
|
||||||
|
.replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseysleep:" title=":marseysleep:" src="/e/marseysleep.webp">', ':marseysleep:')
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
||||||
|
|
|
@ -302,7 +302,9 @@ class Submission(Base):
|
||||||
|
|
||||||
body = add_options(self, body, v)
|
body = add_options(self, body, v)
|
||||||
|
|
||||||
body = censor_slurs(body, v)
|
if self.sub != 'chudrama':
|
||||||
|
body = censor_slurs(body, v)
|
||||||
|
|
||||||
body = normalize_urls_runtime(body, v)
|
body = normalize_urls_runtime(body, v)
|
||||||
|
|
||||||
if not listing and not self.ghost and self.author.show_sig(v):
|
if not listing and not self.ghost and self.author.show_sig(v):
|
||||||
|
@ -318,8 +320,9 @@ class Submission(Base):
|
||||||
body = self.body
|
body = self.body
|
||||||
if not body: return ""
|
if not body: return ""
|
||||||
|
|
||||||
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:') \
|
if self.sub != 'chudrama':
|
||||||
.replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseysleep:" title=":marseysleep:" src="/e/marseysleep.webp">', ':marseysleep:')
|
body = censor_slurs(body, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:') \
|
||||||
|
.replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseysleep:" title=":marseysleep:" src="/e/marseysleep.webp">', ':marseysleep:')
|
||||||
|
|
||||||
body = normalize_urls_runtime(body, v)
|
body = normalize_urls_runtime(body, v)
|
||||||
|
|
||||||
|
@ -328,8 +331,9 @@ class Submission(Base):
|
||||||
@lazy
|
@lazy
|
||||||
def realtitle(self, v):
|
def realtitle(self, v):
|
||||||
title = self.title_html
|
title = self.title_html
|
||||||
|
|
||||||
title = censor_slurs(title, v)
|
if self.sub != 'chudrama':
|
||||||
|
title = censor_slurs(title, v)
|
||||||
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
@ -337,8 +341,9 @@ class Submission(Base):
|
||||||
def plaintitle(self, v):
|
def plaintitle(self, v):
|
||||||
title = self.title
|
title = self.title
|
||||||
|
|
||||||
title = censor_slurs(title, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:') \
|
if self.sub != 'chudrama':
|
||||||
.replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseysleep:" title=":marseysleep:" src="/e/marseysleep.webp">', ':marseysleep:')
|
title = censor_slurs(title, v).replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="/e/marseytrain.webp">', ':marseytrain:') \
|
||||||
|
.replace('<img loading="lazy" data-bs-toggle="tooltip" alt=":marseysleep:" title=":marseysleep:" src="/e/marseysleep.webp">', ':marseysleep:')
|
||||||
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue