From 5d20cf7c03dfcff3169b6a9013c035bbb8ca216c Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Wed, 17 Jun 2026 15:06:05 +0200 Subject: [PATCH] add notification TITLE_MAX_LENGTH constant --- surfsense_backend/app/notifications/constants.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/surfsense_backend/app/notifications/constants.py b/surfsense_backend/app/notifications/constants.py index 6fc13e3c7..4c7139972 100644 --- a/surfsense_backend/app/notifications/constants.py +++ b/surfsense_backend/app/notifications/constants.py @@ -2,6 +2,9 @@ from __future__ import annotations +# Matches notifications.title VARCHAR(200). +TITLE_MAX_LENGTH = 200 + # Notifications newer than this are live-synced; older ones load via the list endpoint. SYNC_WINDOW_DAYS = 14