This commit is contained in:
flower_linux
2026-05-20 16:31:07 +08:00
parent a65cb05d5d
commit 6cc3fdf411
34 changed files with 126 additions and 125 deletions

View File

@@ -35,12 +35,10 @@ class StatusView(APIView):
config = Config.objects.filter(pk=1).first()
if config is None:
bgm_enabled = True
site_title = "Nepal Journey: Our Story"
together_since = default_together
unlock_at = None
else:
bgm_enabled = config.bgm_enabled
site_title = config.site_title or "Nepal Journey: Our Story"
ts = config.together_since
if ts is None:
@@ -63,7 +61,6 @@ class StatusView(APIView):
"unlocked": True,
"unlock_at": unlock_at,
"together_since": together_since,
"bgm_enabled": bgm_enabled,
"site_title": site_title,
}
)