From aa28bbb6f253ad6fe508338e190dda3166af03f2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 16 Feb 2024 14:18:06 +0200 Subject: [PATCH] add more filters --- files/helpers/can_see.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/can_see.py b/files/helpers/can_see.py index 29cf52b72..d2612962c 100644 --- a/files/helpers/can_see.py +++ b/files/helpers/can_see.py @@ -4,7 +4,7 @@ from files.classes.comment import Comment from files.classes.hole import Hole from flask import request -words_to_hide = ('israel', 'palestin', 'muslim', 'islam', 'hamas', 'jew', 'gaza', 'rafah', 'isis', 'terror', 'iraq') +words_to_hide = ('israel', 'isreal', 'palestin', 'muslim', 'islam', 'hamas', 'jew', 'zion', 'gaza', 'rafah', 'isis', 'terror', 'iraq', 'allah', 'mohammad', 'muhammad', 'mohammed', 'muhammed', 'mohamad', 'muhamad', 'mohamed', 'muhamed') def can_see(user, other): if isinstance(other, (Post, Comment)):