forked from rDrama/rDrama
dffd
parent
57670abe06
commit
c02a6e176e
|
@ -901,7 +901,7 @@ def undelete_comment(cid, v):
|
|||
@app.route("/api/v1/embed/post/<pid>/comment/<cid>", methods=["GET"])
|
||||
def embed_comment_cid(cid, pid=None):
|
||||
|
||||
comment = get_comment(cid)
|
||||
comment = get_comment(int(cid))
|
||||
|
||||
if not comment.parent:
|
||||
abort(403)
|
||||
|
|
|
@ -171,7 +171,7 @@ def blocks(v):
|
|||
def banned(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
users = [x for x in g.db.query(User).filter(User.is_banned is not None, User.unban_utc is None).all()]
|
||||
users = [x for x in g.db.query(User).filter(User.is_banned, not User.unban_utc).all()]
|
||||
return render_template("banned.html", v=v, users=users)
|
||||
|
||||
@app.route("/formatting", methods=["GET"])
|
||||
|
|
Loading…
Reference in New Issue