diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-07 18:57:00 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-07 18:57:00 -0400 |
commit | 7d89e765ab499bb861d83e5e2a3fb1d1ee11cd75 (patch) | |
tree | c5f2af1bbdaa9b1e36789589a4a66ad8824a20f4 | |
parent | 31fd45ba028dbebd2cec7c8658d06aa7eea28a77 (diff) | |
download | gitea-7d89e765ab499bb861d83e5e2a3fb1d1ee11cd75.tar.gz gitea-7d89e765ab499bb861d83e5e2a3fb1d1ee11cd75.zip |
Bug fix
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index f2460e1aa5..0ca32bc28b 100644 --- a/models/repo.go +++ b/models/repo.go @@ -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, uid}) + has, _ := orm.Get(&Watch{0, uid, rid}) return has } |