From 6dd1ef4dadbeb283a7f6d780ac4a4fbd15a3bcd8 Mon Sep 17 00:00:00 2001 From: lumaa-dev Date: Sun, 28 Jun 2026 12:41:48 +0200 Subject: [PATCH 1/3] feat(webhook): add user IDs for `requestedBy`, `reportedBy`, `commentedBy` --- server/lib/notifications/agents/webhook.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/lib/notifications/agents/webhook.ts b/server/lib/notifications/agents/webhook.ts index 3fdde03ab8..95d3a018af 100644 --- a/server/lib/notifications/agents/webhook.ts +++ b/server/lib/notifications/agents/webhook.ts @@ -40,6 +40,7 @@ const KeyMap: Record = { request_id: 'request.id', requestedBy_jellyfinUserId: 'request.requestedBy.jellyfinUserId', requestedBy_username: 'request.requestedBy.displayName', + requestedBy_id: 'request.requestedBy.id', requestedBy_email: 'request.requestedBy.email', requestedBy_avatar: 'request.requestedBy.avatar', requestedBy_settings_discordIds: 'request.requestedBy.settings.discordIds', @@ -51,12 +52,14 @@ const KeyMap: Record = { issue_status: (payload) => payload.issue ? IssueStatus[payload.issue.status] : '', reportedBy_username: 'issue.createdBy.displayName', + reportedBy_id: 'issue.createdBy.id', reportedBy_email: 'issue.createdBy.email', reportedBy_avatar: 'issue.createdBy.avatar', reportedBy_settings_discordIds: 'issue.createdBy.settings.discordIds', reportedBy_settings_telegramChatId: 'issue.createdBy.settings.telegramChatId', comment_message: 'comment.message', commentedBy_username: 'comment.user.displayName', + commentedBy_id: 'comment.user.id', commentedBy_email: 'comment.user.email', commentedBy_avatar: 'comment.user.avatar', commentedBy_settings_discordIds: 'comment.user.settings.discordIds', From 3f272210ad94255ad26d5fb150e7a6cecaa614d2 Mon Sep 17 00:00:00 2001 From: lumaa-dev Date: Sun, 28 Jun 2026 12:57:01 +0200 Subject: [PATCH 2/3] feat(docs) Add webhook change + fix "reporting" typos --- docs/using-seerr/notifications/webhook.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/using-seerr/notifications/webhook.md b/docs/using-seerr/notifications/webhook.md index 263058f9ae..31d3371fb7 100644 --- a/docs/using-seerr/notifications/webhook.md +++ b/docs/using-seerr/notifications/webhook.md @@ -116,6 +116,7 @@ The following special variables are only included in request-related notificatio | Variable | Value | | ----------------------------------------- | ------------------------------------------------------------------------------ | | `{{request_id}}` | The request ID | +| `{{requestedBy_id}}` | The requesting user's ID | | `{{requestedBy_username}}` | The requesting user's username | | `{{requestedBy_email}}` | The requesting user's email address | | `{{requestedBy_avatar}}` | The requesting user's avatar URL | @@ -132,11 +133,12 @@ The following special variables are only included in issue-related notifications | Variable | Value | | ---------------------------------------- | ------------------------------------------------------------------------------ | | `{{issue_id}}` | The issue ID | -| `{{reportedBy_username}}` | The requesting user's username | -| `{{reportedBy_email}}` | The requesting user's email address | -| `{{reportedBy_avatar}}` | The requesting user's avatar URL | +| `{{reportedBy_id}}` | The reporting user's ID. | +| `{{reportedBy_username}}` | The reporting user's username | +| `{{reportedBy_email}}` | The reporting user's email address | +| `{{reportedBy_avatar}}` | The reporting user's avatar URL | | `{{reportedBy_settings_discordIds}}` | The reporting user's Discord ID(s) as a JSON array (if set) | -| `{{reportedBy_settings_telegramChatId}}` | The requesting user's Telegram Chat ID (if set) | +| `{{reportedBy_settings_telegramChatId}}` | The reporting user's Telegram Chat ID (if set) | #### Comment @@ -147,6 +149,7 @@ The following special variables are only included in issue comment-related notif | Variable | Value | | ----------------------------------------- | ------------------------------------------------------------------------------ | | `{{comment_message}}` | The comment message | +| `{{commentedBy_id}}` | The commenting user's ID | | `{{commentedBy_username}}` | The commenting user's username | | `{{commentedBy_email}}` | The commenting user's email address | | `{{commentedBy_avatar}}` | The commenting user's avatar URL | From 9787da05fbcb8bf4900e5083ce84aac6dba7965c Mon Sep 17 00:00:00 2001 From: lumaa-dev Date: Sun, 28 Jun 2026 12:58:43 +0200 Subject: [PATCH 3/3] feat(webhook): updated default payload with new user ID keys --- .../Settings/Notifications/NotificationsWebhook/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Settings/Notifications/NotificationsWebhook/index.tsx b/src/components/Settings/Notifications/NotificationsWebhook/index.tsx index d69a6c9c4f..2b00aee75c 100644 --- a/src/components/Settings/Notifications/NotificationsWebhook/index.tsx +++ b/src/components/Settings/Notifications/NotificationsWebhook/index.tsx @@ -47,6 +47,7 @@ const defaultPayload = { '{{request}}': { request_id: '{{request_id}}', requestedBy_email: '{{requestedBy_email}}', + requestedBy_id: '{{requestedBy_id}}', requestedBy_username: '{{requestedBy_username}}', requestedBy_avatar: '{{requestedBy_avatar}}', requestedBy_jellyfinUserId: '{{requestedBy_jellyfinUserId}}', @@ -59,6 +60,7 @@ const defaultPayload = { issue_type: '{{issue_type}}', issue_status: '{{issue_status}}', reportedBy_email: '{{reportedBy_email}}', + reportedBy_id: '{{reportedBy_id}}', reportedBy_username: '{{reportedBy_username}}', reportedBy_avatar: '{{reportedBy_avatar}}', reportedBy_settings_discordIds: '{{reportedBy_settings_discordIds}}', @@ -68,6 +70,7 @@ const defaultPayload = { '{{comment}}': { comment_message: '{{comment_message}}', commentedBy_email: '{{commentedBy_email}}', + commentedBy_id: '{{commentedBy_id}}', commentedBy_username: '{{commentedBy_username}}', commentedBy_avatar: '{{commentedBy_avatar}}', commentedBy_settings_discordIds: '{{commentedBy_settings_discordIds}}',