mirror of
https://github.com/go-gitea/gitea
synced 2025-07-05 18:17:19 +00:00
#1419: 500 when visit a issue with issue/comments of deleted user
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user