From 140633718ce18b09a44b3d7a02b0b8eefaf5c0b1 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Tue, 10 Mar 2026 11:31:21 +1300 Subject: [PATCH] Chore: Limit subject length to 100 characters in browser notifications --- server/ui-src/components/AppNotifications.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/ui-src/components/AppNotifications.vue b/server/ui-src/components/AppNotifications.vue index dd61339..a411ca3 100644 --- a/server/ui-src/components/AppNotifications.vue +++ b/server/ui-src/components/AppNotifications.vue @@ -77,7 +77,8 @@ export default { if (!this.pauseNotifications) { this.pauseNotifications = true; const from = response.Data.From !== null ? response.Data.From.Address : "[unknown]"; - this.browserNotify("New mail from: " + from, response.Data.Subject); + const subject = String(response.Data.Subject ?? "").substring(0, 100); + this.browserNotify("New mail from: " + from, subject); this.setMessageToast(response.Data); // delay notifications by 2s window.setTimeout(() => {