summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-15 02:54:39 +0800
committerUnknwon <u@gogs.io>2015-08-15 02:54:39 +0800
commita24141ec9cc1f47f89469a4ba1c1f583474d38db (patch)
treeee559d315f9a6dda80291130b3a6b58647cdcec9 /models/issue.go
parent30b428bf0eabb9f6cd73894d776502e1b7e351b7 (diff)
downloadgitea-a24141ec9cc1f47f89469a4ba1c1f583474d38db.tar.gz
gitea-a24141ec9cc1f47f89469a4ba1c1f583474d38db.zip
more on #1319
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go3
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