forked from rDrama/rDrama
1
0
Fork 0

fix error

master
Aevann 2023-09-29 03:40:53 +03:00
parent 854693124a
commit 39c210c153
2 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ def settings_personal_post(v):
updated = True
session["over_18"] = int(request.values.get("over_18") == 'true')
elif not updated and v.can_toggle_event_music and request.values.get("event_music", v.event_music) != v.event_music:
elif not updated and IS_EVENT() and v.can_toggle_event_music and request.values.get("event_music", v.event_music) != v.event_music:
updated = True
session['event_music'] = request.values.get("event_music", v.event_music) == 'true'

View File

@ -7,7 +7,7 @@
<section id="site-settings-experience-section" class="settings-section-section">
<h5>Site Experience</h5>
<div class="settings-section rounded" id="site-settings-experience">
{% if v.can_toggle_event_music %}
{% if IS_EVENT() and v.can_toggle_event_music %}
{{common.toggle_section('Event Music', 'event_music_switch', 'event_music', v.event_music, 'Toggle event music.', false)}}
{% endif %}
<div class="d-lg-flex border-bottom">