From 9cf7048a6a9bed8be9e02a3e0c1ae3336614cdc3 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Thu, 2 Jan 2020 03:07:15 +0100 Subject: [PATCH] Dont trigger notification twice on issue assignee change (#9582) --- routers/repo/issue.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 67c4ee3788..925903fee4 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -23,7 +23,6 @@ import ( "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/markup" "code.gitea.io/gitea/modules/markup/markdown" - "code.gitea.io/gitea/modules/notification" "code.gitea.io/gitea/modules/setting" api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/util" @@ -1177,13 +1176,11 @@ func UpdateIssueAssignee(ctx *context.Context) { return } - removed, comment, err := issue_service.ToggleAssignee(issue, ctx.User, assigneeID) + _, _, err = issue_service.ToggleAssignee(issue, ctx.User, assigneeID) if err != nil { ctx.ServerError("ToggleAssignee", err) return } - - notification.NotifyIssueChangeAssignee(ctx.User, issue, assignee, removed, comment) } } ctx.JSON(200, map[string]interface{}{ -- 2.39.5