mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
Tweak handler function for post_cross_posts fragment
This commit is contained in:
parent
242c737076
commit
051d0458d7
1 changed files with 2 additions and 2 deletions
|
@ -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'])
|
||||||
|
|
Loading…
Add table
Reference in a new issue