Browse Source

Fix bug in Issue.GetIsRead (#876)

for-closed-social
Ethan Koenig 7 years ago
committed by Lunny Xiao
parent
commit
e6b4448ba3
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      models/issue.go

+ 2
- 1
models/issue.go 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

Loading…
Cancel
Save