diff options
author | Unknwon <u@gogs.io> | 2015-08-15 02:48:05 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-15 02:48:05 +0800 |
commit | 30b428bf0eabb9f6cd73894d776502e1b7e351b7 (patch) | |
tree | c7e51f33011d5813374f9d90c6e4c5fef3f79cbb /models/issue.go | |
parent | e4d6b5d488981d78417e9c85eda8226ebb8b7e37 (diff) | |
download | gitea-30b428bf0eabb9f6cd73894d776502e1b7e351b7.tar.gz gitea-30b428bf0eabb9f6cd73894d776502e1b7e351b7.zip |
#1419: 500 when visit a issue with issue/comments of deleted user
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index 712dd6bb2d..4b7da8ce6c 100644 --- a/models/issue.go +++ b/models/issue.go @@ -1364,7 +1364,7 @@ func (c *Comment) AfterSet(colName string, _ xorm.Cell) { if err != nil { if IsErrUserNotExist(err) { c.PosterID = -1 - c.Poster = &User{Name: "someone"} + c.Poster = NewFakeUser() } else { log.Error(3, "GetUserByID[%d]: %v", c.ID, err) } |