mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-19 02:31:48 +00:00
Fix review comment/dimiss comment x reference can be refereced back (#35094)
Fix #15977
This commit is contained in:
parent
fc4cb07beb
commit
bc78a9a38a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user