Skip to content

Commit e6b4448

Browse files
ethantkoeniglunny
authored andcommitted
Fix bug in Issue.GetIsRead (#876)
1 parent e4031b8 commit e6b4448

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

models/issue.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ func (issue *Issue) GetIsRead(userID int64) error {
193193
if has, err := x.Get(issueUser); err != nil {
194194
return err
195195
} else if !has {
196-
return ErrUserNotExist{UID: userID}
196+
issue.IsRead = false
197+
return nil
197198
}
198199
issue.IsRead = issueUser.IsRead
199200
return nil

0 commit comments

Comments
 (0)