From 45c8a3aeeb4c47935e89d9c8b48aa01b7bac400d Mon Sep 17 00:00:00 2001 From: Lauris BH Date: Sat, 11 Jan 2020 16:23:40 +0200 Subject: [PATCH] Fix cache problem on dashboard (#9358) (#9703) Co-authored-by: Lunny Xiao --- routers/user/home.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routers/user/home.go b/routers/user/home.go index 40b3bc3fc..605db86a0 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -74,7 +74,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)