This commit is contained in:
rimu 2024-01-12 17:55:01 +13:00
parent f9f236da13
commit ed024f91e5

View file

@ -963,6 +963,7 @@ def comment_ap(comment_id):
@bp.route('/post/<int:post_id>', methods=['GET', 'POST'])
@bp.route('/post/<int:post_id>/', methods=['GET', 'POST'])
def post_ap(post_id):
if request.method == 'GET' and is_activitypub_request():
post = Post.query.get_or_404(post_id)