mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Reload issue when sending webhook to make num comments is right. (#35243)
Fix #35229 --------- Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
		| @@ -481,6 +481,7 @@ func (m *webhookNotifier) DeleteComment(ctx context.Context, doer *user_model.Us | ||||
| 		log.Error("LoadPoster: %v", err) | ||||
| 		return | ||||
| 	} | ||||
| 	comment.Issue = nil // reload issue to ensure it has the latest data, especially the number of comments | ||||
| 	if err = comment.LoadIssue(ctx); err != nil { | ||||
| 		log.Error("LoadIssue: %v", err) | ||||
| 		return | ||||
|   | ||||
		Reference in New Issue
	
	Block a user