Skip to content

Commit 45c8a3a

Browse files
lafrikslunny
andauthored
Fix cache problem on dashboard (#9358) (#9703)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 0e5126d commit 45c8a3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routers/user/home.go

+2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ func retrieveFeeds(ctx *context.Context, options models.GetFeedsOptions) {
7474
if act.ActUser != nil {
7575
userCache[act.ActUserID] = act.ActUser
7676
}
77+
}
7778

79+
for _, act := range actions {
7880
repoOwner, ok := userCache[act.Repo.OwnerID]
7981
if !ok {
8082
repoOwner, err = models.GetUserByID(act.Repo.OwnerID)

0 commit comments

Comments
 (0)