Remove voluntary marsify toggle.

remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-09-25 20:38:44 -04:00
parent 4c26a7cd02
commit b0529716bc
3 changed files with 1 additions and 27 deletions

View File

@ -78,7 +78,7 @@ def award_timers(v, bot=False):
v.earlylife = None
notify_if_not_bot("Your earlylife status has expired!")
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
if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
badge = v.has_badge(170)

View File

@ -100,14 +100,6 @@ def settings_profile_post(v):
updated = 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:
updated = True
v.spider = int(request.values.get("spider") == 'true')

View File

@ -742,24 +742,6 @@
</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 class="d-lg-flex border-bottom">
<div class="title w-lg-25">