summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-12-16 04:44:23 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-12-15 15:44:23 -0500
commitc6b3c5bcefde6be4c64f5769a38962c2ce6ad6de (patch)
tree6cec0e861cd68a97a42db509279115e7306bc495 /routers
parent7217b703e95a3ab01b69f91879fb4d6532f0b2c5 (diff)
downloadgitea-c6b3c5bcefde6be4c64f5769a38962c2ce6ad6de.tar.gz
gitea-c6b3c5bcefde6be4c64f5769a38962c2ce6ad6de.zip
Fix cache problem on dashboard (#9358)
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 426f15bfa7..ae5975a711 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -78,7 +78,9 @@ func retrieveFeeds(ctx *context.Context, options models.GetFeedsOptions) {
if act.ActUser != nil {
userCache[act.ActUserID] = act.ActUser
}
+ }
+ for _, act := range actions {
repoOwner, ok := userCache[act.Repo.OwnerID]
if !ok {
repoOwner, err = models.GetUserByID(act.Repo.OwnerID)