|
@ -1079,8 +1079,10 @@ func ViewIssue(ctx *context.Context) { |
|
|
} |
|
|
} |
|
|
} else if comment.Type == models.CommentTypeRemoveDependency || comment.Type == models.CommentTypeAddDependency { |
|
|
} else if comment.Type == models.CommentTypeRemoveDependency || comment.Type == models.CommentTypeAddDependency { |
|
|
if err = comment.LoadDepIssueDetails(); err != nil { |
|
|
if err = comment.LoadDepIssueDetails(); err != nil { |
|
|
ctx.ServerError("LoadDepIssueDetails", err) |
|
|
|
|
|
return |
|
|
|
|
|
|
|
|
if !models.IsErrIssueNotExist(err) { |
|
|
|
|
|
ctx.ServerError("LoadDepIssueDetails", err) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} else if comment.Type == models.CommentTypeCode || comment.Type == models.CommentTypeReview { |
|
|
} else if comment.Type == models.CommentTypeCode || comment.Type == models.CommentTypeReview { |
|
|
comment.RenderedContent = string(markdown.Render([]byte(comment.Content), ctx.Repo.RepoLink, |
|
|
comment.RenderedContent = string(markdown.Render([]byte(comment.Content), ctx.Repo.RepoLink, |
|
|