diff --git a/files/routes/posts.py b/files/routes/posts.py index c48ab801e5..76274d3716 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -61,10 +61,7 @@ def publish(pid, v): execute_snappy(p, v) - if is_site_url(request.referrer): - return redirect(request.referrer) - - return redirect(p.permalink) + return {"message": "Post has been published successfully!"} @app.get("/submit") @app.get("/h//submit") diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index ff29fd89fd..621666ea5c 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -1,8 +1,5 @@ {% if v and v.id==p.author_id and p.private %} -
- - -
+ {% endif %} diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index 7270976e52..0e6ec6f7d9 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -1,8 +1,5 @@ {% if v and v.id==p.author_id and p.private %} -
- - -
+ {% endif %}