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.
This commit is contained in:
Paulo Victor Cordeiro
2026-06-02 17:02:25 +01:00
committed by GitHub
parent aa420e2060
commit 44e0259163

View File

@@ -696,7 +696,7 @@ def setup_note_routes(task_scheduler=None):
# the same dispatch without an HTTP roundtrip + auth cookie. # the same dispatch without an HTTP roundtrip + auth cookie.
return await dispatch_reminder( return await dispatch_reminder(
title=title, note_body=note_body, note_id=note_id, title=title, note_body=note_body, note_id=note_id,
owner=_gcu(request) or "", owner=_owner(request) or "",
queue_browser=False, queue_browser=False,
) )