Skip to content

Commit bc78a9a

Browse files
authored
Fix review comment/dimiss comment x reference can be refereced back (#35094)
Fix #15977
1 parent fc4cb07 commit bc78a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/issue_xref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ func (issue *Issue) verifyReferencedIssue(stdCtx context.Context, ctx *crossRefe
235235

236236
// AddCrossReferences add cross references
237237
func (c *Comment) AddCrossReferences(stdCtx context.Context, doer *user_model.User, removeOld bool) error {
238-
if c.Type != CommentTypeCode && c.Type != CommentTypeComment {
238+
if !c.Type.HasContentSupport() {
239239
return nil
240240
}
241241
if err := c.LoadIssue(stdCtx); err != nil {

0 commit comments

Comments
 (0)