Skip to content

Commit

Permalink
Fix cache problem on dashboard (go-gitea#9358)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny authored and lafriks committed Jan 11, 2020
1 parent 0e5126d commit f85b8f9
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 @@ -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)
Expand Down

0 comments on commit f85b8f9

Please sign in to comment.