From 4449ee939b8c38a3b9697f8a03825a48ec30dcdb Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 13 Aug 2023 16:23:42 +0300 Subject: [PATCH] fix cursormarsey appearing to wpd logged-out --- files/routes/jinja2.py | 1 + files/templates/root.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/routes/jinja2.py b/files/routes/jinja2.py index e1db65cfa..04dfda1d9 100644 --- a/files/routes/jinja2.py +++ b/files/routes/jinja2.py @@ -129,4 +129,5 @@ def inject_constants(): "CHUD_PHRASES":CHUD_PHRASES, "hasattr":hasattr, "calc_users":calc_users, "HOLE_INACTIVITY_DELETION":HOLE_INACTIVITY_DELETION, "MAX_IMAGE_AUDIO_SIZE_MB":MAX_IMAGE_AUDIO_SIZE_MB, "MAX_IMAGE_AUDIO_SIZE_MB_PATRON":MAX_IMAGE_AUDIO_SIZE_MB_PATRON, "MAX_VIDEO_SIZE_MB":MAX_VIDEO_SIZE_MB, "MAX_VIDEO_SIZE_MB_PATRON":MAX_VIDEO_SIZE_MB_PATRON, + "CURSORMARSEY_DEFAULT":CURSORMARSEY_DEFAULT, } diff --git a/files/templates/root.html b/files/templates/root.html index 7b79043bb..fdf23ee73 100644 --- a/files/templates/root.html +++ b/files/templates/root.html @@ -48,7 +48,7 @@ {{html_head.stylesheets_lower()}} - {% if not v or v.cursormarsey %} + {% if (v and v.cursormarsey) or (not v and CURSORMARSEY_DEFAULT) %}