render notifications from blocked users as blocked

also cleans up indentation on comments.html for clarity
This commit is contained in:
Walter Miller 2023-11-06 20:38:11 -05:00 committed by Walter Miller
parent fc8834950e
commit 50ef21f729
3 changed files with 124 additions and 118 deletions

View file

@ -83,6 +83,9 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None):
blocked.c.user_id == Comment.author_id,
isouter=True
)
# TODO (wmill) This looks wrong to me. It adds on new properties to all comments to use voted/blocked/blocking status in rendering.
# But it needs to be repeated if you ever want to render comments anywhere else.
output = []
for c in comments: