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:
Yassine Doghri 2025-01-08 11:11:19 +00:00
commit 3359abf3fc
132 changed files with 2426 additions and 2259 deletions

View file

@ -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([