mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-15 12:37:46 +02:00
build: update js and php dependencies to latest
This commit is contained in:
parent
23a47efefd
commit
a00e45ea4c
46 changed files with 1128 additions and 1015 deletions
|
|
@ -45,7 +45,7 @@ class PostController extends FediversePostController
|
|||
public function _remap(string $method, string ...$params): mixed
|
||||
{
|
||||
if (
|
||||
($podcast = (new PodcastModel())->getPodcastByHandle($params[0])) === null
|
||||
! ($podcast = (new PodcastModel())->getPodcastByHandle($params[0])) instanceof Podcast
|
||||
) {
|
||||
throw PageNotFoundException::forPageNotFound();
|
||||
}
|
||||
|
|
@ -55,9 +55,8 @@ class PostController extends FediversePostController
|
|||
|
||||
if (
|
||||
count($params) > 1 &&
|
||||
($post = (new PostModel())->getPostById($params[1])) !== null
|
||||
($post = (new PostModel())->getPostById($params[1])) instanceof CastopodPost
|
||||
) {
|
||||
/** @var CastopodPost $post */
|
||||
$this->post = $post;
|
||||
|
||||
unset($params[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue