summaryrefslogtreecommitdiffstats
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-19 23:48:30 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-19 23:48:30 -0400
commitee92fb8635cf9f80453386f2dc4f8b3cd7e9a17e (patch)
tree05364a3705685f934b09ab80108a3b8e443f047f /modules/middleware/repo.go
parent59ea3c0413723521e7504fa5b1be2c3780cbb2ea (diff)
downloadgitea-ee92fb8635cf9f80453386f2dc4f8b3cd7e9a17e.tar.gz
gitea-ee92fb8635cf9f80453386f2dc4f8b3cd7e9a17e.zip
Finish watch backend
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r--modules/middleware/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index a12212affa..e03ddc50a6 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -63,6 +63,7 @@ func RepoAssignment(redirect bool) martini.Handler {
}
ctx.Repo.IsValid = true
+ ctx.Repo.IsWatching = models.IsWatching(ctx.User.Id, repo.Id)
ctx.Repo.Repository = repo
ctx.Data["IsRepositoryValid"] = true