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
Bug fix
for-closed-social
Unknown
10 years ago
parent
31fd45ba02
commit
7d89e765ab
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
models/repo.go
+ 1
- 1
models/repo.go
View File
@ -785,7 +785,7 @@ func NotifyWatchers(act *Action) error {
// IsWatching checks if user has watched given repository.
func
IsWatching
(
uid
,
rid
int64
)
bool
{
has
,
_
:=
orm
.
Get
(
&
Watch
{
0
,
rid
,
u
id
}
)
has
,
_
:=
orm
.
Get
(
&
Watch
{
0
,
uid
,
r
id
}
)
return
has
}
Write
Preview
Loading…
Cancel
Save