From 9d6a34e8a780e3033c1f8d96622c22639d712de2 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 23 Jun 2023 17:43:09 +0300 Subject: [PATCH] fix queen replacements --- files/helpers/sanitize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index eab01b4a9..7ae204cd3 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -729,7 +729,6 @@ def torture_object(obj, torture_method): def complies_with_chud(obj): #check for cases where u should leave - if not obj.chudded: return True if not (obj.author.chud or obj.author.queen): return True if obj.author.marseyawarded: return True if isinstance(obj, Post): @@ -740,6 +739,8 @@ def complies_with_chud(obj): if obj.post.sub == "chudrama": return True if obj.author.chud: + if not obj.chudded: return True + #perserve old body_html to be used in checking for chud phrase old_body_html = obj.body_html