mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 19:17:45 +02:00
fix: remove exit function from podcast:import command to allow for episodes:compute-downloads to run
- update CI4 to v4.5.7 - update php and js dependencies to latest - reconfigure lint-staged
This commit is contained in:
parent
4b0c0d7531
commit
3359abf3fc
132 changed files with 2426 additions and 2259 deletions
|
|
@ -52,16 +52,21 @@ class PostController extends FediversePostController
|
|||
$this->podcast = $podcast;
|
||||
$this->actor = $this->podcast->actor;
|
||||
|
||||
if (
|
||||
count($params) > 1 &&
|
||||
($post = (new PostModel())->getPostById($params[1])) instanceof CastopodPost
|
||||
) {
|
||||
$this->post = $post;
|
||||
|
||||
unset($params[0]);
|
||||
unset($params[1]);
|
||||
if (count($params) <= 1) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
if (
|
||||
! ($post = (new PostModel())->getPostById($params[1])) instanceof CastopodPost
|
||||
) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
$this->post = $post;
|
||||
|
||||
unset($params[0]);
|
||||
unset($params[1]);
|
||||
|
||||
return $this->{$method}(...$params);
|
||||
}
|
||||
|
||||
|
|
@ -72,10 +77,6 @@ class PostController extends FediversePostController
|
|||
$this->registerPodcastWebpageHit($this->podcast->id);
|
||||
}
|
||||
|
||||
if (! $this->post instanceof CastopodPost) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
||||
$cacheName = implode(
|
||||
'_',
|
||||
array_filter([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue