mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
cache buster to ensure redirections don't get stuck in a loop
also it's nice to be able to review a comment after making it
This commit is contained in:
parent
dd836c6532
commit
4073f119f6
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ def show_post(post_id: int):
|
|||
post_request(personal_inbox, create_json, current_user.private_key,
|
||||
current_user.public_url() + '#main-key')
|
||||
|
||||
return redirect(url_for('activitypub.post_ap', post_id=post_id)) # redirect to current page to avoid refresh resubmitting the form
|
||||
return redirect(url_for('activitypub.post_ap', post_id=post_id, _anchor=f'comment_{reply.id}'))
|
||||
else:
|
||||
replies = post_replies(post.id, sort)
|
||||
form.notify_author.data = True
|
||||
|
|
Loading…
Reference in a new issue