diff options
author | 6543 <6543@obermui.de> | 2020-01-02 03:07:15 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2020-01-02 04:07:15 +0200 |
commit | 9cf7048a6a9bed8be9e02a3e0c1ae3336614cdc3 (patch) | |
tree | 7ad61c145609bc9441f5bd7b5e44647e9d4ba528 /routers | |
parent | c620eb5b2d0d874da68ebd734d3864c5224f71f7 (diff) | |
download | gitea-9cf7048a6a9bed8be9e02a3e0c1ae3336614cdc3.tar.gz gitea-9cf7048a6a9bed8be9e02a3e0c1ae3336614cdc3.zip |
Dont trigger notification twice on issue assignee change (#9582)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 5 |
1 files changed, 1 insertions, 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{}{ |