diff options
author | guillep2k <18600385+guillep2k@users.noreply.github.com> | 2019-09-02 23:35:31 -0300 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-09-02 22:35:31 -0400 |
commit | 8ae96a37ce6c02021e05ea57f9c600e19acdd6bb (patch) | |
tree | abc7d40250f2aead1a73d3f615343c9568845fcb /routers | |
parent | ee11974719528197241840dc245f7daf08ec5c0a (diff) | |
download | gitea-8ae96a37ce6c02021e05ea57f9c600e19acdd6bb.tar.gz gitea-8ae96a37ce6c02021e05ea57f9c600e19acdd6bb.zip |
Add change title notification for issues (#8061)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 564a0eab09..a865bd0ad1 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1045,11 +1045,14 @@ func UpdateIssueTitle(ctx *context.Context) { return } + oldTitle := issue.Title if err := issue.ChangeTitle(ctx.User, title); err != nil { ctx.ServerError("ChangeTitle", err) return } + notification.NotifyIssueChangeTitle(ctx.User, issue, oldTitle) + ctx.JSON(200, map[string]interface{}{ "title": issue.Title, }) |