forked from MarseyWorld/MarseyWorld
Remove voluntary marsify toggle.
parent
4c26a7cd02
commit
b0529716bc
|
@ -78,7 +78,7 @@ def award_timers(v, bot=False):
|
||||||
v.earlylife = None
|
v.earlylife = None
|
||||||
notify_if_not_bot("Your earlylife status has expired!")
|
notify_if_not_bot("Your earlylife status has expired!")
|
||||||
badge = v.has_badge(169)
|
badge = v.has_badge(169)
|
||||||
if v.marsify and v.marsify != 1 and v.marsify < now:
|
if v.marsify and v.marsify < now:
|
||||||
v.marsify = 0
|
v.marsify = 0
|
||||||
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
|
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
|
||||||
badge = v.has_badge(170)
|
badge = v.has_badge(170)
|
||||||
|
|
|
@ -100,14 +100,6 @@ def settings_profile_post(v):
|
||||||
updated = True
|
updated = True
|
||||||
v.is_nofollow = request.values.get("nofollow") == 'true'
|
v.is_nofollow = request.values.get("nofollow") == 'true'
|
||||||
|
|
||||||
elif request.values.get("marsify", v.marsify) != v.marsify and v.marsify <= 1:
|
|
||||||
updated = True
|
|
||||||
v.marsify = int(request.values.get("marsify") == 'true')
|
|
||||||
if v.marsify: badge_grant(user=v, badge_id=170)
|
|
||||||
else:
|
|
||||||
badge = v.has_badge(170)
|
|
||||||
if badge: g.db.delete(badge)
|
|
||||||
|
|
||||||
elif request.values.get("spider", v.spider) != v.spider and v.spider <= 1:
|
elif request.values.get("spider", v.spider) != v.spider and v.spider <= 1:
|
||||||
updated = True
|
updated = True
|
||||||
v.spider = int(request.values.get("spider") == 'true')
|
v.spider = int(request.values.get("spider") == 'true')
|
||||||
|
|
|
@ -742,24 +742,6 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
|
||||||
<div class="d-lg-flex border-bottom">
|
|
||||||
|
|
||||||
<div class="title w-lg-25">
|
|
||||||
<label for="marsifyswitch">Marsify</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="body w-lg-100">
|
|
||||||
|
|
||||||
<div class="custom-control custom-switch">
|
|
||||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="marsifyswitch" name="marsify" {% if v.marsify%}checked{% endif %} {% if v.marsify > 1 %}disabled{% endif %} onchange="post_toast(this,'/settings/profile?marsify='+document.getElementById('marsifyswitch').checked)">
|
|
||||||
<label class="custom-control-label" for="marsifyswitch"></label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<span class="text-small text-muted">Automatically insert relevant marseys into your future comments.</span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="d-lg-flex border-bottom">
|
<div class="d-lg-flex border-bottom">
|
||||||
<div class="title w-lg-25">
|
<div class="title w-lg-25">
|
||||||
|
|
Loading…
Reference in New Issue