Refactor notification for indexer (#5111)

* notification for indexer

* use NullNotifier as parent struct
This commit is contained in:
2019-01-17 22:23:22 +08:00
committed by GitHub
parent 477a80f658
commit 82e08a3364
8 changed files with 75 additions and 15 deletions

View File

@ -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
}