diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-01-17 22:23:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-17 22:23:22 +0800 |
commit | 82e08a3364195b515a005180c2bdc08e78aac208 (patch) | |
tree | f8ae9f914ab522224e57fcf94675a7f7dd39006e /models/issue.go | |
parent | 477a80f658a04fc477d800887c55654ac307ff45 (diff) | |
download | gitea-82e08a3364195b515a005180c2bdc08e78aac208.tar.gz gitea-82e08a3364195b515a005180c2bdc08e78aac208.zip |
Refactor notification for indexer (#5111)
* notification for indexer
* use NullNotifier as parent struct
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/models/issue.go b/models/issue.go index 4f03ed926e..baca512ab0 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1112,8 +1112,6 @@ func NewIssue(repo *Repository, issue *Issue, labelIDs []int64, assigneeIDs []in return fmt.Errorf("Commit: %v", err) } - UpdateIssueIndexer(issue.ID) - if err = NotifyWatchers(&Action{ ActUserID: issue.Poster.ID, ActUser: issue.Poster, @@ -1652,7 +1650,6 @@ func updateIssue(e Engine, issue *Issue) error { if err != nil { return err } - UpdateIssueIndexer(issue.ID) return nil } |