From 6d68c092cc87a182949ec1bc9c6c77313256ca55 Mon Sep 17 00:00:00 2001 From: SneedBot Date: Fri, 29 Mar 2024 01:00:18 +0000 Subject: [PATCH] sneed --- files/classes/user.py | 2 +- files/routes/search.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 5583dc244..8045da3a9 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -988,7 +988,7 @@ class User(Base): if not self.is_private: return True if not user: return False if self.id == user.id: return True - return user.admin_level >= PERMS['VIEW_PRIVATE_PROFILES'] or user.eye + return user.admin_level >= PERMS['VIEW_PRIVATE_PROFILES'] or (user.eye and SITE != 'rdrama.net') #to stop the doxing, if u see this, pls dont tell anyone @property @lazy diff --git a/files/routes/search.py b/files/routes/search.py index 385b49dca..993464ca0 100644 --- a/files/routes/search.py +++ b/files/routes/search.py @@ -25,6 +25,9 @@ valid_params = [ 'effortpost', ] +if SITE == 'rdrama.net': + valid_params.remove('author') #to stop the doxing, if u see this, pls dont tell anyone + def searchparse(text): text = text.lower()