WIP
This commit is contained in:
@@ -12,7 +12,7 @@ namespace App\Controllers;
|
||||
use App\Core\Bot;
|
||||
use App\Core\Kernel;
|
||||
use App\Core\StatisticsService;
|
||||
use App\Errors\PlaylistNotFoundException;
|
||||
use App\Exceptions\PlaylistNotFoundException;
|
||||
use chillerlan\QRCode\QRCode;
|
||||
use chillerlan\QRCode\QROptions;
|
||||
use Exception;
|
||||
@@ -38,7 +38,7 @@ class ApiController extends BasicController
|
||||
$code = $request->getAttributes()['code'] ?? null;
|
||||
empty($code) && throw new PlaylistNotFoundException('');
|
||||
|
||||
$playlist = ini()->getPlaylist($code);
|
||||
$playlist = ini()->playlist($code);
|
||||
if ($playlist['isOnline'] === true) {
|
||||
unset($playlist['content']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user