Update FollowerService

This commit is contained in:
Daniel Supernault 2021-09-03 20:51:56 -06:00
parent 6b0b2cfaa5
commit 0d8d6bc71e
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -46,7 +46,7 @@ class FollowerService
public static function audience($profile, $scope = null)
{
return (new self)->getAudienceInboxes($profile);
return (new self)->getAudienceInboxes($profile, $scope);
}
public static function softwareAudience($profile, $software = 'pixelfed')
@ -60,7 +60,8 @@ class FollowerService
return InstanceService::software($domain) === strtolower($software);
})
->unique()
->values();
->values()
->toArray();
}
protected function getAudienceInboxes($pid, $scope = null)