diff --git a/files/helpers/const.py b/files/helpers/const.py index 73e6105e2..35cb61a71 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -127,7 +127,6 @@ if SITE in {'rdrama.net','devrama.xyz'}: BASEDBOT_ID = 0 A_ID = 1230 - MENTION_ID = 9376 KIPPY_ID = 7150 TAX_NOTIF_ID = 995 PIZZASHILL_ID = 2424 @@ -159,7 +158,6 @@ elif SITE == "pcmemes.net": BASEDBOT_ID = 800 A_ID = 0 - MENTION_ID = 0 KIPPY_ID = 1592 PIZZASHILL_ID = 0 TAX_NOTIF_ID = 1592 @@ -191,7 +189,6 @@ else: BASEDBOT_ID = 0 A_ID = 0 - MENTION_ID = 0 KIPPY_ID = 0 TAX_NOTIF_ID = 9 PIZZASHILL_ID = 0 diff --git a/files/routes/users.py b/files/routes/users.py index c9126ec9a..061b3ed21 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -671,7 +671,7 @@ def following(username, v): @app.get("/views") @auth_required def visitors(v): - if v.admin_level < 1 and not v.patron: return render_template("errors/patron.html", v=v) + if v.admin_level < 2 and not v.patron: return render_template("errors/patron.html", v=v) viewers=sorted(v.viewers, key = lambda x: x.last_view_utc, reverse=True) return render_template("viewers.html", v=v, viewers=viewers) @@ -697,7 +697,7 @@ def u_username(username, v=None): if request.headers.get("Authorization") or request.headers.get("xhr"): return {"error": f"That username is reserved for: {u.reserved}"} return render_template("userpage_reserved.html", u=u, v=v) - if v and u.id != v.id and u.patron: + if v and u.id != v.id and (u.patron or u.admin_level > 1): view = g.db.query(ViewerRelationship).filter_by(viewer_id=v.id, user_id=u.id).one_or_none() if view: view.last_view_utc = int(time.time()) diff --git a/files/templates/submit.html b/files/templates/submit.html index e9a50d074..e257620ce 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -90,7 +90,7 @@ -
WARNING: Selecting a sub considerably limits the number of people who will see your post. Don't select a sub unless that's what you want.
+
WARNING: Selecting a sub considerably reduces the number of people who will see your post. Don't select a sub unless that's what you want.