summaryrefslogtreecommitdiffstats
path: root/services/issue/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/issue/issue.go')
-rw-r--r--services/issue/issue.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/services/issue/issue.go b/services/issue/issue.go
index ee2f176a43..aa06ba4097 100644
--- a/services/issue/issue.go
+++ b/services/issue/issue.go
@@ -5,10 +5,7 @@
package issue
import (
- "fmt"
-
"code.gitea.io/gitea/models"
- "code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/notification"
)
@@ -24,18 +21,6 @@ func NewIssue(repo *models.Repository, issue *models.Issue, labelIDs []int64, uu
}
}
- if err := models.NotifyWatchers(&models.Action{
- ActUserID: issue.Poster.ID,
- ActUser: issue.Poster,
- OpType: models.ActionCreateIssue,
- Content: fmt.Sprintf("%d|%s", issue.Index, issue.Title),
- RepoID: repo.ID,
- Repo: repo,
- IsPrivate: repo.IsPrivate,
- }); err != nil {
- log.Error("NotifyWatchers: %v", err)
- }
-
notification.NotifyNewIssue(issue)
return nil