diff options
author | Unknwon <u@gogs.io> | 2015-08-15 02:54:39 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-15 02:54:39 +0800 |
commit | a24141ec9cc1f47f89469a4ba1c1f583474d38db (patch) | |
tree | ee559d315f9a6dda80291130b3a6b58647cdcec9 /models | |
parent | 30b428bf0eabb9f6cd73894d776502e1b7e351b7 (diff) | |
download | gitea-a24141ec9cc1f47f89469a4ba1c1f583474d38db.tar.gz gitea-a24141ec9cc1f47f89469a4ba1c1f583474d38db.zip |
more on #1319
Diffstat (limited to 'models')
-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 |