mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-30 05:24:28 +01:00 
			
		
		
		
	we don't want reviews to count towards comments, as this needs changes in other components as well (eg repo stats cron job, etc). Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
		
							parent
							
								
									f635d60344
								
							
						
					
					
						commit
						696521b33b
					
				| @ -835,13 +835,12 @@ func updateCommentInfos(ctx context.Context, opts *CreateCommentOptions, comment | ||||
| 			} | ||||
| 		} | ||||
| 		fallthrough | ||||
| 	case CommentTypeReview: | ||||
| 		fallthrough | ||||
| 	case CommentTypeComment: | ||||
| 		if _, err = e.Exec("UPDATE `issue` SET num_comments=num_comments+1 WHERE id=?", opts.Issue.ID); err != nil { | ||||
| 			return err | ||||
| 		} | ||||
| 
 | ||||
| 		fallthrough | ||||
| 	case CommentTypeReview: | ||||
| 		// Check attachments | ||||
| 		attachments, err := repo_model.GetAttachmentsByUUIDs(ctx, opts.Attachments) | ||||
| 		if err != nil { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user