summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/issue.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go
index 7cbb5bb5f8..97c633c234 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -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