Browse Source

Fix cache problem on dashboard (#9358) (#9703)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
tags/v1.10.3
Lauris BH 6 years ago committed by GitHub
parent
commit
45c8a3aeeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      routers/user/home.go

2
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)

Loading…
Cancel
Save