From 4a45452a8cd89ea92f544b88b427b69e1eae091c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 26 Nov 2021 02:35:51 +0200 Subject: [PATCH] dfsfd --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e6612efea..b1e5dddb8 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -201,7 +201,7 @@ def post_id(pid, anything=None, v=None): post.replies = comments.filter(Comment.is_pinned != None).all() + comments.filter(Comment.level == 1, Comment.is_pinned == None).all() - if request.host == 'rdrama.net' and pid in [BUG_THREAD, EMOJI_THREAD]: post.replies = post.replies[:10] + if request.host == 'rdrama.net' and pid in [BUG_THREAD, EMOJI_THREAD] and sort == 'new': post.replies = post.replies[:10] post.views += 1 g.db.add(post)