aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-15 02:48:05 +0800
committerUnknwon <u@gogs.io>2015-08-15 02:48:05 +0800
commit30b428bf0eabb9f6cd73894d776502e1b7e351b7 (patch)
treec7e51f33011d5813374f9d90c6e4c5fef3f79cbb /models/issue.go
parente4d6b5d488981d78417e9c85eda8226ebb8b7e37 (diff)
downloadgitea-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.go2
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)
}