diff --git a/routers/user/home.go b/routers/user/home.go index 426f15bfa7e..ae5975a711c 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)