1
0
Fork 0
forked from forgejo/forgejo

Refactor notification for indexer (#5111)

* notification for indexer

* use NullNotifier as parent struct
This commit is contained in:
Lunny Xiao 2019-01-17 22:23:22 +08:00 committed by GitHub
parent 477a80f658
commit 82e08a3364
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 75 additions and 15 deletions

View file

@ -833,8 +833,6 @@ func NewPullRequest(repo *Repository, pull *Issue, labelIDs []int64, uuids []str
return fmt.Errorf("Commit: %v", err)
}
UpdateIssueIndexer(pull.ID)
if err = NotifyWatchers(&Action{
ActUserID: pull.Poster.ID,
ActUser: pull.Poster,