From 6c9750a95df62c257cfc2591cfba8dcb4f82bfee Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 14 Feb 2024 15:26:00 +0200 Subject: [PATCH] fix 500 error --- files/classes/post.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/post.py b/files/classes/post.py index 664a12ac3..30b57552f 100644 --- a/files/classes/post.py +++ b/files/classes/post.py @@ -420,4 +420,4 @@ class Post(Base): if self.hole == 'chudrama': return v.admin_level >= PERMS['POST_COMMENT_MODERATION'] else: - return v.admin_level >= PERMS['POST_COMMENT_MODERATION'] or (self.hole and v.mods_hole(hole_from)) or self.author_id == v.id + return v.admin_level >= PERMS['POST_COMMENT_MODERATION'] or (self.hole and v.mods_hole(self.hole)) or self.author_id == v.id