Tweak handler function for post_cross_posts fragment

This commit is contained in:
freamon 2025-01-13 14:07:18 +00:00
parent 242c737076
commit 051d0458d7

View file

@ -1533,8 +1533,8 @@ def post_reply_notification(post_reply_id: int):
@bp.route('/post/<int:post_id>/cross_posts', methods=['GET']) @bp.route('/post/<int:post_id>/cross_posts', methods=['GET'])
def post_cross_posts(post_id: int): def post_cross_posts(post_id: int):
post = Post.query.get_or_404(post_id) post = Post.query.get_or_404(post_id)
cross_posts = Post.query.filter(Post.id.in_(post.cross_posts)).all() cross_posts = Post.query.filter(Post.id.in_(post.cross_posts))
return render_template('post/post_cross_posts.html', post=post, cross_posts=cross_posts) return render_template('post/post_cross_posts.html', cross_posts=cross_posts)
@bp.route('/post/<int:post_id>/voting_activity', methods=['GET']) @bp.route('/post/<int:post_id>/voting_activity', methods=['GET'])