Fixes #3482 -- Show some reports on remote-only stations.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-08-10 11:14:09 -05:00
parent a418f5c130
commit 6c3931198b
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
4 changed files with 0 additions and 20 deletions

View File

@ -122,7 +122,6 @@ return function (App\Event\BuildStationMenu $e) {
'reports_listeners' => [
'label' => __('Listeners'),
'url' => (string)$router->fromHere('stations:reports:listeners'),
'visible' => $frontend->supportsListenerDetail(),
],
'reports_requests' => [
'label' => __('Song Requests'),
@ -151,7 +150,6 @@ return function (App\Event\BuildStationMenu $e) {
'reports_soundexchange' => [
'label' => __('SoundExchange Royalties'),
'url' => (string)$router->fromHere('stations:reports:soundexchange'),
'visible' => $frontend->supportsListenerDetail(),
],
],
],

View File

@ -48,14 +48,6 @@ abstract class AbstractFrontend extends AbstractAdapter
return false;
}
/**
* @return bool Whether the station supports enhanced listener detail (per-client records)
*/
public function supportsListenerDetail(): bool
{
return false;
}
/**
* Get the default mounts when resetting or initializing a station.
*

View File

@ -25,11 +25,6 @@ class Icecast extends AbstractFrontend
return true;
}
public function supportsListenerDetail(): bool
{
return true;
}
public function getNowPlaying(Entity\Station $station, bool $includeClients = true): Result
{
$feConfig = $station->getFrontendConfig();

View File

@ -17,11 +17,6 @@ class SHOUTcast extends AbstractFrontend
return true;
}
public function supportsListenerDetail(): bool
{
return true;
}
public function getVersion(): ?string
{
$binary_path = $this->getBinary();