summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/subscriber.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/subscriber.go')
-rw-r--r--routers/api/v1/repo/subscriber.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go
index 37bf3c29d4..dae92969ba 100644
--- a/routers/api/v1/repo/subscriber.go
+++ b/routers/api/v1/repo/subscriber.go
@@ -52,5 +52,7 @@ func ListSubscribers(ctx *context.APIContext) {
for i, subscriber := range subscribers {
users[i] = convert.ToUser(subscriber, ctx.User)
}
+
+ ctx.SetTotalCountHeader(int64(ctx.Repo.Repository.NumWatches))
ctx.JSON(http.StatusOK, users)
}