summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 0db170bfd8..7f6396ebd1 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -67,6 +67,9 @@ func retrieveFeeds(ctx *context.Context, user *models.User, includePrivate, isPr
}
userCache := map[int64]*models.User{user.ID: user}
+ if ctx.User != nil {
+ userCache[ctx.User.ID] = ctx.User
+ }
repoCache := map[int64]*models.Repository{}
for _, act := range actions {
// Cache results to reduce queries.