]> source.dussan.org Git - gitea.git/commitdiff
Fix cache problem on dashboard (#9358)
authorLunny Xiao <xiaolunwen@gmail.com>
Sun, 15 Dec 2019 20:44:23 +0000 (04:44 +0800)
committertechknowlogick <techknowlogick@gitea.io>
Sun, 15 Dec 2019 20:44:23 +0000 (15:44 -0500)
routers/user/home.go

index 426f15bfa7efd1d821573507b7727fceb4d1a83f..ae5975a711c6b811e0babb0ef4da318af12ad28c 100644 (file)
@@ -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)