diff --git a/drama/routes/users.py b/drama/routes/users.py index ed4214022..16affccff 100644 --- a/drama/routes/users.py +++ b/drama/routes/users.py @@ -1,4 +1,4 @@ -import qrcode +vimport qrcode import io from datetime import datetime @@ -215,7 +215,7 @@ def followers(username, v): @app.get("/views") @auth_required def visitors(v): - if v.admin_level < 1 and not v.patron: abort(403) + if v.admin_level < 1 and not v.patron: abort(502) viewers=sorted(v.viewers, key = lambda x: x.last_view_utc) return render_template("viewers.html", v=v, viewers=viewers) diff --git a/drama/templates/errors/502.html b/drama/templates/errors/502.html index de411fd48..4f51413ca 100644 --- a/drama/templates/errors/502.html +++ b/drama/templates/errors/502.html @@ -3,7 +3,7 @@ -
Don't go this way, stranger. The gate is closed, and the guards are saying:
-"We're restarting the server right now, try again in a few moments."
- +This page is only available to patrons:
+https://rdrama.gumroad.com/l/tfcvri
+https://patreon.com/Aevann