forked from MarseyWorld/MarseyWorld
make publishing a draft reload the page instead of going to the post
parent
03a9a5752b
commit
38358cafe4
|
@ -90,6 +90,9 @@ def publish(pid, v):
|
||||||
send_discord_message(post.permalink)
|
send_discord_message(post.permalink)
|
||||||
cache.delete_memoized(changeloglist)
|
cache.delete_memoized(changeloglist)
|
||||||
|
|
||||||
|
if request.referrer and request.referrer.startswith(f'{SITE_FULL}/'):
|
||||||
|
return redirect(request.referrer)
|
||||||
|
|
||||||
return redirect(post.permalink)
|
return redirect(post.permalink)
|
||||||
|
|
||||||
@app.get("/submit")
|
@app.get("/submit")
|
||||||
|
|
Loading…
Reference in New Issue