From 8ef20b2427798f36cab27f7325d81a8fa93aef3a Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 15 Aug 2022 08:09:33 +0200 Subject: [PATCH] exclude me from modaction notifs on offsites --- files/classes/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/user.py b/files/classes/user.py index 18c333bdb..6aede101b 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -440,7 +440,7 @@ class User(Base): @property @lazy def modaction_num(self): - if self.admin_level < 2: return 0 + if self.admin_level < 2 or (self.id == AEVANN_ID and SITE_NAME != 'rDrama'): return 0 return g.db.query(ModAction).filter_by(user_id=self.id).count() @property