Skip to content

Commit

Permalink
Merge pull request #223 from pinkary-project/fix/users
Browse files Browse the repository at this point in the history
minor fix
  • Loading branch information
nunomaduro authored Apr 15, 2024
2 parents 6190979 + 324efdb commit b75017c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Livewire/Home/Users.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ private function defaultUsers(): Collection

return $this->famousUsers($verifiedUsers)
->merge($verifiedUsers)
->shuffle();
->shuffle()
->load('links');
}

/**
Expand All @@ -90,7 +91,6 @@ private function famousUsers(Collection $except): Collection

return User::query()
->fromSub($famousUsers, 'top_users')
->with('links')
->inRandomOrder()
->limit(10 - $except->count())
->get();
Expand All @@ -108,7 +108,6 @@ private function verifiedUsers(int $limit = 2): Collection
$query->where('url', 'like', '%twitter.com%')
->orWhere('url', 'like', '%github.com%');
})
->with('links')
->where(function (Builder $query): void {
$query->where('is_verified', true)
->orWhereIn('username', array_merge(
Expand Down

0 comments on commit b75017c

Please sign in to comment.