diff --git a/drama/routes/users.py b/drama/routes/users.py index bcf41bc60a..e7e7372748 100644 --- a/drama/routes/users.py +++ b/drama/routes/users.py @@ -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("/@/followers") @auth_required def followers(username, v): diff --git a/drama/templates/followers - Copy.html b/drama/templates/rentoids.html similarity index 93% rename from drama/templates/followers - Copy.html rename to drama/templates/rentoids.html index 12da05893c..1cf74f1181 100644 --- a/drama/templates/followers - Copy.html +++ b/drama/templates/rentoids.html @@ -1,7 +1,7 @@ {% extends "default.html" %} {% block content %}

-
@{{u.username}}'s followers
+
Rentoids