This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
gitea
Watch
3
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Fix bug in Issue.GetIsRead (
#876
)
for-closed-social
Ethan Koenig
7 years ago
committed by
Lunny Xiao
parent
e4031b822a
commit
e6b4448ba3
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