fdfdd
This commit is contained in:
parent
3c43f0f275
commit
1524c7309e
2 changed files with 9 additions and 1 deletions
|
@ -221,6 +221,14 @@ def user_by_uid(uid, v=None):
|
|||
def redditor_moment_redirect(username):
|
||||
return redirect(f"/@{username}")
|
||||
|
||||
@app.get("/rentoids")
|
||||
@auth_desired
|
||||
def rentoids(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
|
||||
users = g.db.query(User).filter(User.rent_utc > 0).all()
|
||||
return render_template("rentoids.html", v=v, users=users)
|
||||
|
||||
@app.get("/@<username>/followers")
|
||||
@auth_required
|
||||
def followers(username, v):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue