mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Move webhook codes from service to webhook notification (#8712)
* Move webhook codes from service to webhook notification * move deletecomment webhook to notifications * fix notification
This commit is contained in:
		@@ -74,6 +74,11 @@ func (r *indexerNotifier) NotifyUpdateComment(doer *models.User, c *models.Comme
 | 
			
		||||
 | 
			
		||||
func (r *indexerNotifier) NotifyDeleteComment(doer *models.User, comment *models.Comment) {
 | 
			
		||||
	if comment.Type == models.CommentTypeComment {
 | 
			
		||||
		if err := comment.LoadIssue(); err != nil {
 | 
			
		||||
			log.Error("LoadIssue: %v", err)
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		var found bool
 | 
			
		||||
		if comment.Issue.Comments != nil {
 | 
			
		||||
			for i := 0; i < len(comment.Issue.Comments); i++ {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user