mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-24 22:25:15 +00:00
This fixes a panic that occurred when handling webhooks. The code was incorrectly using webhook.CreatedByID (user ID) to fetch a project, when it should use webhook.ProjectID. This could cause GetProjectSimpleByID to return nil if no project exists with that ID. Additionally, added a nil check before calling project.ReadOne() to prevent a nil pointer dereference panic when accessing p.ID. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kolaente <13721712+kolaente@users.noreply.github.com>