fds
This commit is contained in:
parent
c920aaf81a
commit
be1219e792
3 changed files with 3 additions and 3 deletions
|
@ -98,7 +98,7 @@ def publish(pid, v):
|
||||||
|
|
||||||
g.db.commit()
|
g.db.commit()
|
||||||
|
|
||||||
return {"message": "Post published!"}
|
return redirect(p.permalink)
|
||||||
|
|
||||||
@app.get("/submit")
|
@app.get("/submit")
|
||||||
@app.get("/h/<sub>/submit")
|
@app.get("/h/<sub>/submit")
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
{% if v and v.id==p.author_id %}
|
{% if v and v.id==p.author_id %}
|
||||||
{% if p.private %}
|
{% if p.private %}
|
||||||
<a class="list-inline-item" role="button" onclick="post_toast(this,'/publish/{{p.id}}')"><i class="fas fa-globe"></i>Publish</a>
|
<a class="list-inline-item" href='/publish/{{p.id}}'><i class="fas fa-globe"></i>Publish</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if p.private %}
|
{% if p.private %}
|
||||||
<button class="nobackground btn btn-link btn-block btn-lg text-left text-muted" role="button" onclick="post_toast(this,'/publish/{{p.id}}')" data-bs-dismiss="modal"><i class="fas fa-globe text-center text-muted mr-3"></i>Publish</button>
|
<a class="nobackground btn btn-link btn-block btn-lg text-left text-muted" href='/publish/{{p.id}}'><i class="fas fa-globe text-center text-muted mr-3"></i>Publish</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if request.path.startswith('/@') %}
|
{% if request.path.startswith('/@') %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue