This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix bug in Issue.GetIsRead (
#876
)
tags/v1.2.0-rc1
Ethan Koenig
Lunny Xiao
8 years ago
parent
68ffb36d6b
commit
3846bd7137
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save