dont play homoween music when visiting a profile that has music

pull/213/head
Aevann 2023-10-09 18:48:04 +03:00
parent 530fd77817
commit ab03f0df47
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{% if not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) %}
{% if not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) %}
{% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %}
{% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %}
<input hidden id="event-song" value="{{song}}">