From e0f54e0cb5c3bd483adcf4ea7810a854e3c0e037 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 3 Jun 2024 11:55:15 +0300 Subject: [PATCH] hide "nog" --- files/helpers/can_see.py | 4 ++-- files/helpers/slurs_and_profanities.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/files/helpers/can_see.py b/files/helpers/can_see.py index 886493352..cfb90c797 100644 --- a/files/helpers/can_see.py +++ b/files/helpers/can_see.py @@ -6,9 +6,9 @@ from flask import request #DELETE_ME_PLS if SITE_NAME == 'rDrama': - words_to_hide = ('israel', 'isreal', 'palest', 'muslim', 'islam', 'hamas', 'jew', 'zion', 'gaza', 'rafah', 'isis', 'terror', 'iraq', 'allah', 'mohammad', 'muhammad', 'mohammed', 'muhammed', 'mohamad', 'muhamad', 'mohamed', 'muhamed', 'trans', 'train', 'tranny', 'troon', 'rowdy', 'nigger', 'bipoc', 'rape', 'rapist', 'wpd', 'watchpeopledie') + words_to_hide = ('israel', 'isreal', 'palest', 'muslim', 'islam', 'hamas', 'jew', 'zion', 'gaza', 'rafah', 'isis', 'terror', 'iraq', 'allah', 'mohammad', 'muhammad', 'mohammed', 'muhammed', 'mohamad', 'muhamad', 'mohamed', 'muhamed', 'trans', 'train', 'tranny', 'troon', 'rowdy', 'nigger', 'nog', 'bipoc', 'rape', 'rapist', 'wpd', 'watchpeopledie') else: - words_to_hide = ('israel', 'isreal', 'palest', 'muslim', 'islam', 'hamas', 'jew', 'zion', 'gaza', 'rafah', 'isis', 'terror', 'iraq', 'allah', 'mohammad', 'muhammad', 'mohammed', 'muhammed', 'mohamad', 'muhamad', 'mohamed', 'muhamed', 'trans', 'train', 'tranny', 'troon', 'rowdy', 'nigger', 'bipoc', 'rape', 'rapist') + words_to_hide = ('israel', 'isreal', 'palest', 'muslim', 'islam', 'hamas', 'jew', 'zion', 'gaza', 'rafah', 'isis', 'terror', 'iraq', 'allah', 'mohammad', 'muhammad', 'mohammed', 'muhammed', 'mohamad', 'muhamad', 'mohamed', 'muhamed', 'trans', 'train', 'tranny', 'troon', 'rowdy', 'nigger', 'nog', 'bipoc', 'rape', 'rapist') def can_see(user, obj): if isinstance(obj, (Post, Comment)): diff --git a/files/helpers/slurs_and_profanities.py b/files/helpers/slurs_and_profanities.py index 4fac74bcb..9bda1ede9 100644 --- a/files/helpers/slurs_and_profanities.py +++ b/files/helpers/slurs_and_profanities.py @@ -14,6 +14,7 @@ SLURS = { "negroid": "BIPOC", "nignog": "BIPOC", "nig nog": "BIPOC", + "(?