forked from MarseyWorld/MarseyWorld
dffd
parent
246169e709
commit
f85c0d19ac
|
@ -381,10 +381,10 @@ def u_username(username, v=None):
|
|||
if v and u.id == 253:
|
||||
if int(time.time()) - v.rent_utc > 600:
|
||||
if request.headers.get("Authorization"): return {"error": "That userpage is private"}
|
||||
else: return render_template("userpage_private.html", u=u, v=v)
|
||||
else: return render_template("userpage_private.html", time=int(time.time()), u=u, v=v)
|
||||
else:
|
||||
if request.headers.get("Authorization"): return {"error": "That userpage is private"}
|
||||
else: return render_template("userpage_private.html", u=u, v=v)
|
||||
else: return render_template("userpage_private.html", time=int(time.time()), u=u, v=v)
|
||||
|
||||
|
||||
if u.is_blocking and (not v or v.admin_level < 3):
|
||||
|
@ -478,10 +478,10 @@ def u_username_comments(username, v=None):
|
|||
if v and u.id == 253:
|
||||
if int(time.time()) - v.rent_utc > 600:
|
||||
if request.headers.get("Authorization"): return {"error": "That userpage is private"}
|
||||
else: return render_template("userpage_private.html", u=u, v=v)
|
||||
else: return render_template("userpage_private.html", time=int(time.time()), u=u, v=v)
|
||||
else:
|
||||
if request.headers.get("Authorization"): return {"error": "That userpage is private"}
|
||||
else: return render_template("userpage_private.html", u=u, v=v)
|
||||
else: return render_template("userpage_private.html", time=int(time.time()), u=u, v=v)
|
||||
|
||||
if u.is_blocking and (not v or v.admin_level < 3):
|
||||
if request.headers.get("Authorization"): return {"error": f"You are blocking @{u.username}."}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
{% if u.id == 253 and 'rdrama' in request.host %}
|
||||
<a class="btn btn-primary" href="javascript:void(0)", onclick="post('/pay_rent', callback=function(){window.location.reload(true)})">Pay rent to view profile (500 coins)</a>
|
||||
<pre></pre>
|
||||
{% if v.coins > 100 and int(time.time()) - v.created_utc > 604800 and not v.is_suspended %}
|
||||
{% if v.coins > 100 and time - v.created_utc > 604800 and not v.is_suspended %}
|
||||
<a class="btn btn-primary" href="javascript:void(0)", onclick="post('/steal', callback=function(){window.location.reload(true)})">Attempt to steal coins</a>
|
||||
<div class="text-small-extra text-muted mt-1">30% chance of being banned for 1 day, 70% chance of stealing 2000 coins</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue