mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 12:37:46 +02:00
feat: set min PHP version to 8.4
update CI4 to 4.6.0 + use codeigniter-vite and vite-plugin-codeigniter to load assets
This commit is contained in:
parent
0e4e301b81
commit
94cea0ce91
397 changed files with 4693 additions and 4302 deletions
|
|
@ -46,7 +46,7 @@ class EpisodeAudioController extends Controller
|
|||
public function initController(
|
||||
RequestInterface $request,
|
||||
ResponseInterface $response,
|
||||
LoggerInterface $logger
|
||||
LoggerInterface $logger,
|
||||
): void {
|
||||
// Do Not Edit This Line
|
||||
parent::initController($request, $response, $logger);
|
||||
|
|
@ -93,7 +93,7 @@ class EpisodeAudioController extends Controller
|
|||
|
||||
// check if podcast is already unlocked before any token validation
|
||||
if ($this->episode->is_premium && ! ($subscription = service('premium_podcasts')->subscription(
|
||||
$this->episode->podcast->handle
|
||||
$this->episode->podcast->handle,
|
||||
)) instanceof Subscription) {
|
||||
// look for token as GET parameter
|
||||
if (($token = $this->request->getGet('token')) === null) {
|
||||
|
|
@ -110,7 +110,7 @@ class EpisodeAudioController extends Controller
|
|||
// check if there's a valid subscription for the provided token
|
||||
if (! ($subscription = (new SubscriptionModel())->validateSubscription(
|
||||
$this->episode->podcast->handle,
|
||||
$token
|
||||
$token,
|
||||
)) instanceof Subscription) {
|
||||
return $this->response->setStatusCode(401, 'Invalid token!')
|
||||
->setJSON([
|
||||
|
|
@ -154,7 +154,7 @@ class EpisodeAudioController extends Controller
|
|||
$audioDuration,
|
||||
$this->episode->published_at->getTimestamp(),
|
||||
$serviceName,
|
||||
$subscription instanceof Subscription ? $subscription->id : null
|
||||
$subscription instanceof Subscription ? $subscription->id : null,
|
||||
);
|
||||
|
||||
$audioFileURI = new URI(service('file_manager')->getUrl($this->episode->audio->file_key));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue