summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-08 20:00:07 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-08 20:00:07 -0400
commit25713ab209a22b03ebadae277d3b765a340e8e82 (patch)
tree2f1dc01faa60121ba23fda996cf89146d0cc37d5 /models/issue.go
parent914ffa496f8e8e9948ca8c5596da6b0d3c17555d (diff)
downloadgitea-25713ab209a22b03ebadae277d3b765a340e8e82.tar.gz
gitea-25713ab209a22b03ebadae277d3b765a340e8e82.zip
Fix #167
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go4
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
}