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'])