From fb42139f8c1c2134d1d61e6451fcee9641d54980 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 8 Jun 2023 04:27:12 +0300 Subject: [PATCH] fix bec99392fe0a5966df9306fbc121a35979d19c9a --- files/classes/user.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/files/classes/user.py b/files/classes/user.py index de03d096ac..e52b995946 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -1031,8 +1031,11 @@ class User(Base): return False if other.sub and not cls.can_see(user, other.subr): return False - if 'christchurch' in other.title.lower() and request.headers.get("Cf-Ipcountry") == 'NZ': - return False + if request.headers.get("Cf-Ipcountry") == 'NZ': + if 'christchurch' in other.title.lower(): + return False + if SITE == 'watchpeopledie.tv' and other.id == 5: + return False else: if other.parent_submission: return cls.can_see(user, other.post)