From 293dd09ee4392d66a37314ee46dd4d0f64d6c914 Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 17 Aug 2023 02:23:13 +0300 Subject: [PATCH] make it so ppl are able to comment on shadowbanned niggas' walls so its a little less obvious they're shadowbanned --- files/routes/comments.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index af5353ee8..45172f12c 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -146,7 +146,9 @@ def comment(v): - if not User.can_see(v, parent): abort(403) + if posting_to_post and not User.can_see(v, parent): + abort(403) + if not isinstance(parent, User) and parent.deleted_utc != 0: if isinstance(parent, Post): abort(403, "You can't reply to deleted posts!")