From 051d0458d76a12e0fb59efa2a16331702416a44b Mon Sep 17 00:00:00 2001 From: freamon Date: Mon, 13 Jan 2025 14:07:18 +0000 Subject: [PATCH] Tweak handler function for post_cross_posts fragment --- app/post/routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/post/routes.py b/app/post/routes.py index fe7c7634..bf0a19b9 100644 --- a/app/post/routes.py +++ b/app/post/routes.py @@ -1533,8 +1533,8 @@ def post_reply_notification(post_reply_id: int): @bp.route('/post//cross_posts', methods=['GET']) def post_cross_posts(post_id: int): post = Post.query.get_or_404(post_id) - cross_posts = Post.query.filter(Post.id.in_(post.cross_posts)).all() - return render_template('post/post_cross_posts.html', post=post, cross_posts=cross_posts) + cross_posts = Post.query.filter(Post.id.in_(post.cross_posts)) + return render_template('post/post_cross_posts.html', cross_posts=cross_posts) @bp.route('/post//voting_activity', methods=['GET'])