summaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-01-17 22:23:22 +0800
committerGitHub <noreply@github.com>2019-01-17 22:23:22 +0800
commit82e08a3364195b515a005180c2bdc08e78aac208 (patch)
treef8ae9f914ab522224e57fcf94675a7f7dd39006e /models/issue_comment.go
parent477a80f658a04fc477d800887c55654ac307ff45 (diff)
downloadgitea-82e08a3364195b515a005180c2bdc08e78aac208.tar.gz
gitea-82e08a3364195b515a005180c2bdc08e78aac208.zip
Refactor notification for indexer (#5111)
* notification for indexer * use NullNotifier as parent struct
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index 0e40e442b6..6c87650a3c 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -818,9 +818,6 @@ func CreateComment(opts *CreateCommentOptions) (comment *Comment, err error) {
return nil, err
}
- if opts.Type == CommentTypeComment {
- UpdateIssueIndexer(opts.Issue.ID)
- }
return comment, nil
}
@@ -1022,8 +1019,6 @@ func GetCommentsByRepoIDSince(repoID, since int64) ([]*Comment, error) {
func UpdateComment(doer *User, c *Comment, oldContent string) error {
if _, err := x.ID(c.ID).AllCols().Update(c); err != nil {
return err
- } else if c.Type == CommentTypeComment {
- UpdateIssueIndexer(c.IssueID)
}
if err := c.LoadPoster(); err != nil {
@@ -1082,8 +1077,6 @@ func DeleteComment(doer *User, comment *Comment) error {
if err := sess.Commit(); err != nil {
return err
- } else if comment.Type == CommentTypeComment {
- UpdateIssueIndexer(comment.IssueID)
}
if err := comment.LoadPoster(); err != nil {