Skip to content

Commit

Permalink
Improve performance of My content listing for non-admin users
Browse files Browse the repository at this point in the history
  • Loading branch information
chrieinv committed Jan 30, 2025
1 parent a245622 commit c9310a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sourcecode/hub/app/Http/Requests/ContentFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ private function attachModel(array $hits, bool $forUser, bool $showDrafts): Coll
$eagerLoad = ['users'];
if ($showDrafts) {
$eagerLoad[] = 'latestVersion';
} else {
}
if (!$showDrafts || $forUser) {
$eagerLoad[] = 'latestPublishedVersion';
}

Expand Down

0 comments on commit c9310a2

Please sign in to comment.