Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #7 from tomasnorre/GitHub-Random-Sponsors
Browse files Browse the repository at this point in the history
Add shuffle to randomize sponsors
  • Loading branch information
erikaheidi authored Jun 6, 2021
2 parents 2fb9020 + f566a89 commit 8c89aef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/ImageSource/GhSponsorImageSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function getImageList(App $app, $limit = 5): array
$count = 1;
$featured = [];

shuffle($sponsors);

/** @var ApiModel $sponsor */
foreach ($sponsors as $sponsor) {
$avatar = Storage::downloadImage($sponsor->avatarUrl);
Expand Down

0 comments on commit 8c89aef

Please sign in to comment.