diff --git a/files/helpers/const.py b/files/helpers/const.py index 15b9a196ec..f1403be535 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -103,6 +103,7 @@ SLURS = { "elon musk": "rocket daddy", " elon ": " rocket daddy ", "fake and gay": "fake and straight", + ':n: :i::g::g::e::r:':':b: :i::p::o::c:' } single_words = "|".join([slur.lower() for slur in SLURS.keys()]) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 51f7f60494..c20416a2a9 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -236,7 +236,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): if remoji == 'marseyrandom': remoji = choice(marseys_const) if path.isfile(f'files/assets/images/emojis/{remoji}.webp'): - new = re.sub(f'(?', new, flags=re.I|re.A) + new = re.sub(f'(?', new, flags=re.I|re.A) if comment: marseys_used.add(emoji) sanitized = sanitized.replace(old, new) @@ -326,7 +326,7 @@ def filter_emojis_only(title, edit=False, graceful=False): signal.signal(signal.SIGALRM, handler2) signal.alarm(1) - title = title.replace("","").replace('<','<').replace('>','>').replace("&", "&").replace('"', '"').replace("'", "'").replace("\ufeff", "").replace("𒐪","").replace('‎','').replace("\n", "").replace("\r", "").replace("\t", "").strip() + title = title.replace("","").replace("&", "&").replace('<','<').replace('>','>').replace('"', '"').replace("'", "'").replace("\ufeff", "").replace("𒐪","").replace('‎','').replace("\n", "").replace("\r", "").replace("\t", "").strip() title = bleach.clean(title, tags=[])