make it so ppl are able to comment on shadowbanned niggas' walls so its a little less obvious they're shadowbanned

pull/195/head
Aevann 2023-08-17 02:23:13 +03:00
parent 729af8eb37
commit 293dd09ee4
1 changed files with 3 additions and 1 deletions

View File

@ -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!")