We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc6501e commit 143071eCopy full SHA for 143071e
models/issue_xref.go
@@ -290,6 +290,9 @@ func CommentTypeIsRef(t CommentType) bool {
290
291
// RefCommentHTMLURL returns the HTML URL for the comment that created this reference
292
func (comment *Comment) RefCommentHTMLURL() string {
293
+ if comment.RefCommentID == 0 {
294
+ return ""
295
+ }
296
if err := comment.LoadRefComment(); err != nil { // Silently dropping errors :unamused:
297
log.Error("LoadRefComment(%d): %v", comment.RefCommentID, err)
298
return ""
0 commit comments