From 1d4ea7d0a0ee04659a0c5438234ca570b2971be1 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 26 Nov 2025 18:13:49 +0000 Subject: [PATCH] jellyseerr: fix unlinking discord/telegram was accidentally using gc.getString("jfId") instead of req.ID. --- api-messages.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api-messages.go b/api-messages.go index 5be2af3..ddebd92 100644 --- a/api-messages.go +++ b/api-messages.go @@ -659,8 +659,8 @@ func (app *appContext) UnlinkDiscord(gc *gin.Context) { } */ app.storage.DeleteDiscordKey(req.ID) - // May not actually remove Discord ID, but should disable interaction. - if err := app.js.ModifyNotifications(gc.GetString("jfId"), map[jellyseerr.NotificationsField]any{ + // FIXME: Use thirdPartyServices for this + if err := app.js.ModifyNotifications(req.ID, map[jellyseerr.NotificationsField]any{ jellyseerr.FieldDiscord: jellyseerr.BogusIdentifier, jellyseerr.FieldDiscordEnabled: false, }); err != nil { @@ -697,7 +697,8 @@ func (app *appContext) UnlinkTelegram(gc *gin.Context) { } */ app.storage.DeleteTelegramKey(req.ID) - if err := app.js.ModifyNotifications(gc.GetString("jfId"), map[jellyseerr.NotificationsField]any{ + // FIXME: Use thirdPartyServices for this + if err := app.js.ModifyNotifications(req.ID, map[jellyseerr.NotificationsField]any{ jellyseerr.FieldTelegram: jellyseerr.BogusIdentifier, jellyseerr.FieldTelegramEnabled: false, }); err != nil {