forked from rDrama/rDrama
1
0
Fork 0

make publishing a draft reload the page instead of going to the post

master
Aevann1 2022-06-27 04:34:15 +02:00
parent 03a9a5752b
commit 38358cafe4
1 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,9 @@ def publish(pid, v):
send_discord_message(post.permalink)
cache.delete_memoized(changeloglist)
if request.referrer and request.referrer.startswith(f'{SITE_FULL}/'):
return redirect(request.referrer)
return redirect(post.permalink)
@app.get("/submit")