aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/user/home.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go
index 959b1aa1e9..af5750e616 100644
--- a/routers/web/user/home.go
+++ b/routers/web/user/home.go
@@ -72,8 +72,14 @@ func Dashboard(ctx *context.Context) {
ctx.Data["PageIsDashboard"] = true
ctx.Data["PageIsNews"] = true
+ var uid int64
+ if ctxUser != nil {
+ uid = ctxUser.ID
+ }
+
ctx.PageData["dashboardRepoList"] = map[string]interface{}{
"searchLimit": setting.UI.User.RepoPagingNum,
+ "uid": uid,
}
if setting.Service.EnableUserHeatmap {