mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix ref comment from commit create empty feed
This commit is contained in:
		@@ -202,9 +202,11 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	// Notify watchers for whatever action comes in
 | 
			
		||||
	if err = notifyWatchers(e, act); err != nil {
 | 
			
		||||
		return nil, fmt.Errorf("notifyWatchers: %v", err)
 | 
			
		||||
	// Notify watchers for whatever action comes in, ignore if no action type
 | 
			
		||||
	if act.OpType > 0 {
 | 
			
		||||
		if err = notifyWatchers(e, act); err != nil {
 | 
			
		||||
			return nil, fmt.Errorf("notifyWatchers: %v", err)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return comment, nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user