vikunja/pkg/events
kolaente 5236e0c306 fix(notifications): use full user so notifications show display name
Notifications and emails showed the acting user's auto-generated
username instead of their display Name.

The doer attached to notification events was built straight from the
JWT via user.GetFromAuth, which only carries id + username (Name is
never set in GetUserFromClaims). Notifications render n.Doer.GetName(),
which falls back to the username when Name is empty, so every "assigned
you", "mentioned you", task-deleted, project-created and team-member
notification rendered the username.

Resolve the full user from the database at the event-producing dispatch
sites. doerFromAuth now re-fetches the user (with Name) and is reused by
all the notification doers; account-status errors are swallowed so flows
acting on behalf of disabled accounts (e.g. user deletion deleting that
user's tasks) keep working while still carrying the display name.

Fixes #2720
2026-06-18 20:57:05 +00:00
..
events.go refactor(events): pass context to DispatchPending directly 2026-06-12 08:56:08 +00:00
events_test.go refactor(events): pass context to DispatchPending directly 2026-06-12 08:56:08 +00:00
listeners.go fix: correct license header references (#882) 2025-06-10 12:18:38 +02:00
request_meta.go feat(events): carry request metadata onto dispatched event messages 2026-06-12 08:56:08 +00:00
testing.go fix(notifications): use full user so notifications show display name 2026-06-18 20:57:05 +00:00