diff --git a/models/release.go b/models/release.go index f55341b86..1ab36fa57 100644 --- a/models/release.go +++ b/models/release.go @@ -54,7 +54,11 @@ func (r *Release) loadAttributes(e Engine) error { if r.Publisher == nil { r.Publisher, err = getUserByID(e, r.PublisherID) if err != nil { - return err + if IsErrUserNotExist(err) { + r.Publisher = NewGhostUser() + } else { + return err + } } } return getReleaseAttachments(e, r)