0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-19 23:38:29 +02:00

Fix review comment/dimiss comment x reference can be refereced back (#35094)

Fix #15977
This commit is contained in:
Lunny Xiao 2025-07-16 20:36:37 +08:00 committed by GitHub
parent fc4cb07beb
commit bc78a9a38a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -235,7 +235,7 @@ func (issue *Issue) verifyReferencedIssue(stdCtx context.Context, ctx *crossRefe
// AddCrossReferences add cross references // AddCrossReferences add cross references
func (c *Comment) AddCrossReferences(stdCtx context.Context, doer *user_model.User, removeOld bool) error { func (c *Comment) AddCrossReferences(stdCtx context.Context, doer *user_model.User, removeOld bool) error {
if c.Type != CommentTypeCode && c.Type != CommentTypeComment { if !c.Type.HasContentSupport() {
return nil return nil
} }
if err := c.LoadIssue(stdCtx); err != nil { if err := c.LoadIssue(stdCtx); err != nil {