diff --git a/models/issue.go b/models/issue.go index 208204b0767..3c1e27d7370 100644 --- a/models/issue.go +++ b/models/issue.go @@ -94,13 +94,8 @@ func (issue *Issue) loadAttributes(e Engine) (err error) { if issue.Poster == nil { issue.Poster, err = getUserByID(e, issue.PosterID) if err != nil { - if IsErrUserNotExist(err) { - issue.PosterID = -1 - issue.Poster = NewGhostUser() - } else { - return fmt.Errorf("getUserByID.(poster) [%d]: %v", issue.PosterID, err) - } - return + issue.PosterID = -1 + issue.Poster = NewGhostUser() } }