summaryrefslogtreecommitdiffstats
path: root/models/release.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/release.go')
-rw-r--r--models/release.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/models/release.go b/models/release.go
index f55341b86b..1ab36fa57a 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)