From 93abc82e684a6074cfc56f3b1688471d25f7e032 Mon Sep 17 00:00:00 2001 From: Russel Neiss Date: Fri, 25 Mar 2022 16:26:56 -0500 Subject: [PATCH] modify spam algorithm to catch prolific spammers who check their work. --- sefaria/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sefaria/views.py b/sefaria/views.py index 73bd7e15d2..5c5697336a 100644 --- a/sefaria/views.py +++ b/sefaria/views.py @@ -874,7 +874,7 @@ def profile_spam_dashboard(request): {'website': {"$ne": ""}, 'bio': {"$ne": ""}, "id": {"$gt": earliest_new_user_id}, "reviewed": {"$ne": True}}, {'bio': {"$regex": regex}, "id": {"$gt": earliest_new_user_id}, "reviewed": {"$ne": True}}, - {'slug': {"$regex": spam_keywords_regex}, "id": {"$gt": earliest_new_user_id}, "reviewed": {"$ne": True}} + {'slug': {"$regex": spam_keywords_regex}, "id": {"$gt": earliest_new_user_id}, "reviewed": {"$ne": True}, "book": {"$ne": "Sheet"}} ] })