Browse Source

Fix cache problem on dashboard (#9358)

for-closed-social
Lunny Xiao 4 years ago
committed by techknowlogick
parent
commit
c6b3c5bcef
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      routers/user/home.go

+ 2
- 0
routers/user/home.go View 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)

Loading…
Cancel
Save