fds
This commit is contained in:
parent
186cf3a528
commit
37c64f9fb8
2 changed files with 6 additions and 5 deletions
|
@ -486,7 +486,7 @@ def changeloglist(v=None, sort="new", page=1 ,t="all"):
|
|||
return [x[0] for x in posts]
|
||||
|
||||
|
||||
@app.get("/random")
|
||||
@app.get("/random_post")
|
||||
@auth_required
|
||||
def random_post(v):
|
||||
|
||||
|
@ -495,7 +495,7 @@ def random_post(v):
|
|||
if p: p = p[0]
|
||||
else: abort(404)
|
||||
|
||||
return redirect(f"/post/{p.id}")
|
||||
return redirect(f"/post/{p}")
|
||||
|
||||
|
||||
@app.get("/random_user")
|
||||
|
@ -507,7 +507,7 @@ def random_user(v):
|
|||
if u: u = u[0]
|
||||
else: abort(404)
|
||||
|
||||
return redirect(f"/@{x}")
|
||||
return redirect(f"/@{u}")
|
||||
|
||||
|
||||
@app.get("/comments")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue