remotes/1693045480750635534/spooky-22
Aevann1 2022-03-17 20:36:55 +02:00
parent 371b4b4478
commit 7eef18c69d
3 changed files with 3 additions and 3 deletions

View File

@ -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/<sub>/submit")

View File

@ -3,7 +3,7 @@
{% if v and v.id==p.author_id %}
{% 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 %}

View File

@ -20,7 +20,7 @@
{% endif %}
{% 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 %}
{% if request.path.startswith('/@') %}