From d43bed37d55b0cd6c9de1ba96c9e84aa9b25c55e Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 24 Apr 2023 15:28:15 +0200 Subject: [PATCH] make it possible for non-jannies to see wall comments in /comments --- files/routes/front.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/front.py b/files/routes/front.py index 96e2d2192..f12b26a82 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -195,8 +195,8 @@ def comment_idlist(v=None, page=1, sort="new", t="day", gt=0, lt=0): comments = comments.filter( Comment.is_banned == False, Comment.deleted_utc == 0, - Submission.private == False, Comment.author_id.notin_(v.userblocks), + or_(Comment.parent_submission == None, Submission.private == False), ) if gt: comments = comments.filter(Comment.created_utc > gt)