fdfd
This commit is contained in:
parent
4031057bb1
commit
a647bf2cef
16 changed files with 36 additions and 50 deletions
|
@ -14,7 +14,7 @@ def slash_post():
|
|||
@auth_required
|
||||
def notifications(v):
|
||||
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
|
||||
page = int(request.args.get('page', 1))
|
||||
all_ = request.args.get('all', False)
|
||||
|
@ -190,7 +190,7 @@ def frontlist(v=None, sort="hot", page=1, t="all", ids_only=True, filter_words='
|
|||
@auth_desired
|
||||
def front_all(v):
|
||||
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
|
||||
if not v and request.path == "/": return redirect("/logged_out")
|
||||
|
||||
|
@ -300,7 +300,7 @@ def changeloglist(v=None, sort="new", page=1 ,t="all", **kwargs):
|
|||
@app.get("/changelog")
|
||||
@auth_desired
|
||||
def changelog(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
|
||||
page = int(request.args.get("page") or 1)
|
||||
page = max(page, 1)
|
||||
|
@ -330,7 +330,7 @@ def changelog(v):
|
|||
@app.get("/random")
|
||||
@auth_desired
|
||||
def random_post(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
|
||||
x = g.db.query(Submission).filter(Submission.deleted_utc == 0, Submission.is_banned == False)
|
||||
|
||||
|
@ -404,7 +404,7 @@ def comment_idlist(page=1, v=None, nsfw=False, sort="new", t="all", **kwargs):
|
|||
@app.get("/comments")
|
||||
@auth_desired
|
||||
def all_comments(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
|
||||
page = int(request.args.get("page", 1))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue