From 44e025916340d732390d851aa958f97cc7487a94 Mon Sep 17 00:00:00 2001 From: Paulo Victor Cordeiro <146781332+pvcordeiro@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:02:25 +0100 Subject: [PATCH] fix: fire-reminder endpoint crashes with NameError on _gcu (#1250) dispatch_reminder call on line 699 references _gcu(request) which is never defined. The local helper wrapping get_current_user is _owner. Every POST to /api/notes/fire-reminder raises NameError and returns 500. --- routes/note_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/note_routes.py b/routes/note_routes.py index 1524afc..bcf7637 100644 --- a/routes/note_routes.py +++ b/routes/note_routes.py @@ -696,7 +696,7 @@ def setup_note_routes(task_scheduler=None): # the same dispatch without an HTTP roundtrip + auth cookie. return await dispatch_reminder( title=title, note_body=note_body, note_id=note_id, - owner=_gcu(request) or "", + owner=_owner(request) or "", queue_browser=False, )