1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 17:05:48 +00:00

Fix bug in Issue.GetIsRead (#876)

This commit is contained in:
Ethan Koenig 2017-02-08 22:47:24 -05:00 committed by Lunny Xiao
parent e4031b822a
commit e6b4448ba3

View File

@ -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