From cea1330c38984e0b7af0c51aff1bfb23506920a3 Mon Sep 17 00:00:00 2001 From: New-tab <45544033+New-tab@users.noreply.github.com> Date: Mon, 23 Mar 2026 04:33:14 -0400 Subject: [PATCH] Implement user deletion in Jellyseerr Added functionality to delete a user in Jellyseerr. --- users.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/users.go b/users.go index eec7c93b..a3710685 100644 --- a/users.go +++ b/users.go @@ -220,7 +220,14 @@ func (app *appContext) DeleteUser(user mediabrowser.User) (err error, deleted bo } } } - + + // Delete in Jellyseerr + if app.js != nil { + if err := app.js.DeleteUser(user.ID); err != nil { + app.err.Printf(lm.FailedDeleteUser, lm.Jellyseerr, user.ID, err) + } + } + if app.discord != nil && app.config.Section("discord").Key("disable_enable_role").MustBool(false) { cmUser, ok := app.storage.GetDiscordKey(user.ID) if ok {