forked from rDrama/rDrama
restore perma-marsify toggle for paypigs only
parent
9d2f855b8e
commit
8f323c3ec6
|
@ -202,6 +202,17 @@ def settings_personal_post(v):
|
|||
if v.spider: badge_grant(user=v, badge_id=179)
|
||||
else:
|
||||
badge = v.has_badge(179)
|
||||
if badge:
|
||||
g.db.delete(badge)
|
||||
|
||||
elif not updated and request.values.get("marsify", v.marsify) != v.marsify and v.marsify <= 1:
|
||||
if not v.patron:
|
||||
abort(403, f"Perma-marsify is only available to {patron}s!")
|
||||
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 IS_FISTMAS() and not updated and request.values.get("event_music", v.event_music) != v.event_music and v.can_toggle_event_music:
|
||||
|
|
|
@ -217,6 +217,7 @@
|
|||
{# toggle_section(title, id, name, flag, below_text, disabled) #}
|
||||
{{common.toggle_section('Private Mode', 'privateswitch', 'private', v.is_private, 'This will hide your profile page from others.', false)}}
|
||||
{{common.toggle_section('Spider', 'spiderswitch', 'spider', v.spider, 'Have a spider friend accompany you during your journey on the site.', v.spider > 1)}}
|
||||
{{common.toggle_section('Marsify', 'marsify', 'marsify', v.marsify, 'Automatically insert relevant marseys into your future comments.', v.marsify > 1)}}
|
||||
</div>
|
||||
</section>
|
||||
<section id="site-settings-filters-section" class="settings-section-section">
|
||||
|
|
Loading…
Reference in New Issue