mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08: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