Skip to content

Commit

Permalink
Fix cache problem on dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed Dec 15, 2019
1 parent ce2d488 commit 9c0cca7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions routers/user/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,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)
Expand Down

0 comments on commit 9c0cca7

Please sign in to comment.