forked from rDrama/rDrama
do this https://rdrama.net/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/4683097#context
parent
852309cd29
commit
a469a4bf52
|
@ -375,7 +375,8 @@ class Comment(Base):
|
||||||
if not body: return ""
|
if not body: return ""
|
||||||
|
|
||||||
if not (self.parent_post and self.post.sub == 'chudrama'):
|
if not (self.parent_post and self.post.sub == 'chudrama'):
|
||||||
body = censor_slurs(body, v).replace(f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">', ':marseytrain:')
|
body = censor_slurs(body, v)
|
||||||
|
body = replace_train_html(body)
|
||||||
|
|
||||||
return body
|
return body
|
||||||
|
|
||||||
|
|
|
@ -323,7 +323,8 @@ class Post(Base):
|
||||||
if not body: return ""
|
if not body: return ""
|
||||||
|
|
||||||
if self.sub != 'chudrama':
|
if self.sub != 'chudrama':
|
||||||
body = censor_slurs(body, v).replace(f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">', ':marseytrain:')
|
body = censor_slurs(body, v)
|
||||||
|
body = replace_train_html(body)
|
||||||
|
|
||||||
body = normalize_urls_runtime(body, v)
|
body = normalize_urls_runtime(body, v)
|
||||||
|
|
||||||
|
@ -343,7 +344,8 @@ class Post(Base):
|
||||||
title = self.title
|
title = self.title
|
||||||
|
|
||||||
if self.sub != 'chudrama':
|
if self.sub != 'chudrama':
|
||||||
title = censor_slurs(title, v).replace(f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">', ':marseytrain:')
|
title = censor_slurs(title, v)
|
||||||
|
title = replace_train_html(title)
|
||||||
|
|
||||||
return title
|
return title
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,20 @@ GIRL_PHRASES = [
|
||||||
"$ PERIODT"
|
"$ PERIODT"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
tranny = f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">'
|
||||||
|
trannie = f'<img loading="lazy" data-bs-toggle="tooltip" alt=":!marseytrain:" title=":!marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">'
|
||||||
|
troon = f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain2:" title=":marseytrain2:" src="{SITE_FULL_IMAGES}/e/marseytrain2.webp">'
|
||||||
|
|
||||||
|
def replace_train_html(body):
|
||||||
|
body = body.replace(tranny, ':marseytrain:')
|
||||||
|
body = body.replace(trannie, ':!marseytrain:')
|
||||||
|
body = body.replace(troon, ':marseytrain2:')
|
||||||
|
return body
|
||||||
|
|
||||||
SLURS = {
|
SLURS = {
|
||||||
|
"tranny": tranny,
|
||||||
|
"trannie": trannie,
|
||||||
|
"troon": troon,
|
||||||
"(?<!\\bs)nigger": "BIPOC",
|
"(?<!\\bs)nigger": "BIPOC",
|
||||||
"negroid": "BIPOC",
|
"negroid": "BIPOC",
|
||||||
"(?<![a-z])coon(?![a-z])": "BIPOC",
|
"(?<![a-z])coon(?![a-z])": "BIPOC",
|
||||||
|
@ -130,10 +143,6 @@ SLURS = {
|
||||||
"fag": "strag",
|
"fag": "strag",
|
||||||
"(?<![a-z])spic(?![a-z])": "hard-working American",
|
"(?<![a-z])spic(?![a-z])": "hard-working American",
|
||||||
"(?<![a-z])spics(?![a-z])": "hard-working Americans",
|
"(?<![a-z])spics(?![a-z])": "hard-working Americans",
|
||||||
"trannie": f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">',
|
|
||||||
"tranny": f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">',
|
|
||||||
"troon": f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">',
|
|
||||||
"tranner": f'<img loading="lazy" data-bs-toggle="tooltip" alt=":marseytrain:" title=":marseytrain:" src="{SITE_FULL_IMAGES}/e/marseytrain.webp">',
|
|
||||||
"kike": "jewish chad",
|
"kike": "jewish chad",
|
||||||
"(?<![a-z])heeb": "jewish chad",
|
"(?<![a-z])heeb": "jewish chad",
|
||||||
"daisy's destruction": "Cars 2",
|
"daisy's destruction": "Cars 2",
|
||||||
|
|
Loading…
Reference in New Issue