From 7eef18c69d6dfbd6abfb37f2ae3e71b5fc6280c6 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 17 Mar 2022 20:36:55 +0200 Subject: [PATCH] fds --- files/routes/posts.py | 2 +- files/templates/post_actions.html | 2 +- files/templates/post_actions_mobile.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index 23b5753df..fcc2ac1be 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -98,7 +98,7 @@ def publish(pid, v): g.db.commit() - return {"message": "Post published!"} + return redirect(p.permalink) @app.get("/submit") @app.get("/h//submit") diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index 952277c42..e8d6c2133 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -3,7 +3,7 @@ {% if v and v.id==p.author_id %} {% if p.private %} - Publish + Publish {% endif %} {% endif %} diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index 501bbf02f..6b542e6af 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -20,7 +20,7 @@ {% endif %} {% if p.private %} - + Publish {% endif %} {% if request.path.startswith('/@') %}