diff options
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index 4b7da8ce6c..4ceb586b45 100644 --- a/models/issue.go +++ b/models/issue.go @@ -108,7 +108,8 @@ func (i *Issue) IsPoster(uid int64) bool { func (i *Issue) GetPoster() (err error) { i.Poster, err = GetUserByID(i.PosterID) if IsErrUserNotExist(err) { - i.Poster = &User{Name: "Someone"} + i.PosterID = -1 + i.Poster = NewFakeUser() return nil } return err |