remotes/1693045480750635534/spooky-22
Aevann1 2022-03-06 20:27:43 +02:00
parent a404d4f53d
commit af801c395a
3 changed files with 3 additions and 6 deletions

View File

@ -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

View File

@ -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())

View File

@ -90,7 +90,7 @@
</datalist>
</div>
<div class="mt-1" style="font-size: min(3.5vw,14px)"><span style="color:#ffcccb ">WARNING</span>: 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.</div>
<div class="mt-1" style="font-size: min(3.5vw,14px)"><span style="color:#ffcccb ">WARNING</span>: 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.</div>
<label class='mt-4' for="title">Post Title</label>