mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-20 21:57:14 -04:00
#2854 fix no mail notification when issue is closed/reopened
This commit is contained in:
parent
7ca5f8f119
commit
f1b8d52eb3
26 changed files with 438 additions and 347 deletions
|
@ -14,7 +14,6 @@ import (
|
|||
"github.com/gogits/gogs/modules/context"
|
||||
"github.com/gogits/gogs/modules/setting"
|
||||
"github.com/gogits/gogs/routers/api/v1/convert"
|
||||
"github.com/gogits/gogs/routers/repo"
|
||||
)
|
||||
|
||||
func ListIssues(ctx *context.APIContext) {
|
||||
|
@ -80,9 +79,6 @@ func CreateIssue(ctx *context.APIContext, form api.CreateIssueOption) {
|
|||
if err := models.NewIssue(ctx.Repo.Repository, issue, form.Labels, nil); err != nil {
|
||||
ctx.Error(500, "NewIssue", err)
|
||||
return
|
||||
} else if err := repo.MailWatchersAndMentions(ctx.Context, issue); err != nil {
|
||||
ctx.Error(500, "MailWatchersAndMentions", err)
|
||||
return
|
||||
}
|
||||
|
||||
if form.Closed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue