From 42f96a6afed6a64e9945d78a9dbeb6302639cdf9 Mon Sep 17 00:00:00 2001 From: float-trip Date: Thu, 6 Jul 2023 15:49:10 +0000 Subject: [PATCH] Fix /comment JSON response --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index 21d060e70..6bd05edb0 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -75,7 +75,7 @@ def post_pid_comment_cid(cid, pid=None, anything=None, v=None, sub=None): execute_shadowban_viewers_and_voters(v, post) execute_shadowban_viewers_and_voters(v, comment) - if v and v.client: return top_comment.json + if v and v.client: return comment.json else: if post.is_banned and not (v and (v.admin_level >= PERMS['POST_COMMENT_MODERATION'] or post.author_id == v.id)): template = "post_banned.html" else: template = "post.html"