BTHLABS-60: Appearance settings

Co-authored-by: Tomek Wójcik <labs@tomekwojcik.pl>
Co-committed-by: Tomek Wójcik <labs@tomekwojcik.pl>
This commit is contained in:
2025-10-07 04:42:58 +00:00
committed by Tomek Wójcik
parent b4d5375954
commit 2e8b8d7330
11 changed files with 102 additions and 9 deletions

View File

@@ -68,4 +68,10 @@ class Account(AbstractUser):
else:
result['auto_load_embeds'] = auto_load_embeds
light_mode = result.get('light_mode', None)
if isinstance(light_mode, str) is True:
result['light_mode'] = (light_mode == 'True')
else:
result['light_mode'] = light_mode
return result