From 9494df2bf9d5d28a4ec7068e6743a40283924bd1 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 5 Apr 2026 11:01:38 -0400 Subject: [PATCH] Add timezone and notif_last_seen to user_preferences valid keys whitelist Both keys were silently dropped on batch save (the for-loop just continued on unknown keys). timezone is sent by saveSettings() and notif_last_seen is written by the notifications mark-read endpoint. Co-Authored-By: Claude Sonnet 4.6 --- api/user_preferences.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/user_preferences.php b/api/user_preferences.php index 7590a10..8b0d362 100644 --- a/api/user_preferences.php +++ b/api/user_preferences.php @@ -30,9 +30,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { 'rows_per_page', 'default_status_filters', 'table_density', + 'timezone', 'notifications_enabled', 'sound_effects', - 'toast_duration' + 'toast_duration', + 'notif_last_seen', ]; // Support batch save: { preferences: { key: value, ... } }