mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 19:45:25 +01:00 
			
		
		
		
	Fix bug in Issue.GetIsRead (#876)
This commit is contained in:
		
							parent
							
								
									e4031b822a
								
							
						
					
					
						commit
						e6b4448ba3
					
				| @ -193,7 +193,8 @@ func (issue *Issue) GetIsRead(userID int64) error { | ||||
| 	if has, err := x.Get(issueUser); err != nil { | ||||
| 		return err | ||||
| 	} else if !has { | ||||
| 		return ErrUserNotExist{UID: userID} | ||||
| 		issue.IsRead = false | ||||
| 		return nil | ||||
| 	} | ||||
| 	issue.IsRead = issueUser.IsRead | ||||
| 	return nil | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user