diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-08 20:00:07 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-08 20:00:07 -0400 |
commit | 25713ab209a22b03ebadae277d3b765a340e8e82 (patch) | |
tree | 2f1dc01faa60121ba23fda996cf89146d0cc37d5 /models/issue.go | |
parent | 914ffa496f8e8e9948ca8c5596da6b0d3c17555d (diff) | |
download | gitea-25713ab209a22b03ebadae277d3b765a340e8e82.tar.gz gitea-25713ab209a22b03ebadae277d3b765a340e8e82.zip |
Fix #167
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/models/issue.go b/models/issue.go index a84fb0541e..f856ca63b6 100644 --- a/models/issue.go +++ b/models/issue.go @@ -44,6 +44,10 @@ type Issue struct { func (i *Issue) GetPoster() (err error) { i.Poster, err = GetUserById(i.PosterId) + if err == ErrUserNotExist { + i.Poster = &User{Name: "FakeUser"} + return nil + } return err } |