This commit is contained in:
Aevann1 2021-12-11 02:05:01 +02:00
parent 2acfeec7ff
commit 66e96824f4
3 changed files with 33 additions and 3 deletions

View file

@ -322,6 +322,14 @@ def viewmore(v, pid, sort, offset):
return render_template("comments.html", v=v, comments=comments, render_replies=True, pid=pid, sort=sort, offset=offset)
@app.post("/morecomments/<cid>")
@limiter.limit("1/second")
@auth_desired
def morecomments(v, cid):
c = g.db.query(Comment).filter_by(id=cid).first()
comments = c.replies
return render_template("comments.html", v=v, comments=comments, render_replies=True)
@app.post("/edit_post/<pid>")
@limiter.limit("1/second")
@auth_required