diff options
author | Lauris BH <lauris@nix.lv> | 2020-01-11 16:23:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-11 16:23:40 +0200 |
commit | 45c8a3aeeb4c47935e89d9c8b48aa01b7bac400d (patch) | |
tree | 4a39ab20065d599fec8c75ef9c60930f35182ba5 | |
parent | 0e5126da22a150aaf27ed17ce34aa84ffcd27f9e (diff) | |
download | gitea-45c8a3aeeb4c47935e89d9c8b48aa01b7bac400d.tar.gz gitea-45c8a3aeeb4c47935e89d9c8b48aa01b7bac400d.zip |
Fix cache problem on dashboard (#9358) (#9703)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
-rw-r--r-- | routers/user/home.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/user/home.go b/routers/user/home.go index 40b3bc3fc1..605db86a08 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) |