Loading app/Controllers/PostController.php +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class PostController extends FediversePostController $this->registerPodcastWebpageHit($this->podcast->id); } if ($this->post === null) { if (! $this->post instanceof CastopodPost) { throw PageNotFoundException::forPageNotFound(); } Loading app/Entities/Episode.php +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ use RuntimeException; * @property string $slug * @property string $title * @property int $audio_id * @property Audio $audio * @property ?Audio $audio * @property string $audio_url * @property string $audio_web_url * @property string $audio_opengraph_url Loading app/Entities/Person.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ use RuntimeException; * @property string $unique_name * @property string|null $information_url * @property int $avatar_id * @property Image $avatar * @property ?Image $avatar * @property int $created_by * @property int $updated_by * @property object[]|null $roles Loading app/Entities/Podcast.php +2 −2 Original line number Diff line number Diff line Loading @@ -47,9 +47,9 @@ use RuntimeException; * @property string $description_markdown * @property string $description_html * @property int $cover_id * @property Image $cover * @property ?Image $cover * @property int|null $banner_id * @property Image $banner * @property ?Image $banner * @property string $language_code * @property int $category_id * @property Category|null $category Loading app/Helpers/misc_helper.php +4 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ declare(strict_types=1); use App\Entities\Person; use App\Entities\Podcast; use Modules\Media\Entities\Image; /** * @copyright 2020 Ad Aures Loading Loading @@ -318,7 +319,7 @@ if (! function_exists('get_site_icon_url')) { if (! function_exists('get_podcast_banner')) { function get_podcast_banner_url(Podcast $podcast, string $size): string { if ($podcast->banner === null) { if (! $podcast->banner instanceof Image) { $defaultBanner = config('Images') ->podcastBannerDefaultPaths[service('settings')->get('App.theme')] ?? config( 'Images' Loading @@ -344,7 +345,7 @@ if (! function_exists('get_podcast_banner')) { if (! function_exists('get_podcast_banner_mimetype')) { function get_podcast_banner_mimetype(Podcast $podcast, string $size): string { if ($podcast->banner === null) { if (! $podcast->banner instanceof Image) { $sizes = config('Images') ->podcastBannerSizes; Loading @@ -365,7 +366,7 @@ if (! function_exists('get_podcast_banner_mimetype')) { if (! function_exists('get_avatar_url')) { function get_avatar_url(Person $person, string $size): string { if ($person->avatar === null) { if (! $person->avatar instanceof Image) { $defaultAvatarPath = config('Images') ->avatarDefaultPath; Loading Loading
app/Controllers/PostController.php +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class PostController extends FediversePostController $this->registerPodcastWebpageHit($this->podcast->id); } if ($this->post === null) { if (! $this->post instanceof CastopodPost) { throw PageNotFoundException::forPageNotFound(); } Loading
app/Entities/Episode.php +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ use RuntimeException; * @property string $slug * @property string $title * @property int $audio_id * @property Audio $audio * @property ?Audio $audio * @property string $audio_url * @property string $audio_web_url * @property string $audio_opengraph_url Loading
app/Entities/Person.php +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ use RuntimeException; * @property string $unique_name * @property string|null $information_url * @property int $avatar_id * @property Image $avatar * @property ?Image $avatar * @property int $created_by * @property int $updated_by * @property object[]|null $roles Loading
app/Entities/Podcast.php +2 −2 Original line number Diff line number Diff line Loading @@ -47,9 +47,9 @@ use RuntimeException; * @property string $description_markdown * @property string $description_html * @property int $cover_id * @property Image $cover * @property ?Image $cover * @property int|null $banner_id * @property Image $banner * @property ?Image $banner * @property string $language_code * @property int $category_id * @property Category|null $category Loading
app/Helpers/misc_helper.php +4 −3 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ declare(strict_types=1); use App\Entities\Person; use App\Entities\Podcast; use Modules\Media\Entities\Image; /** * @copyright 2020 Ad Aures Loading Loading @@ -318,7 +319,7 @@ if (! function_exists('get_site_icon_url')) { if (! function_exists('get_podcast_banner')) { function get_podcast_banner_url(Podcast $podcast, string $size): string { if ($podcast->banner === null) { if (! $podcast->banner instanceof Image) { $defaultBanner = config('Images') ->podcastBannerDefaultPaths[service('settings')->get('App.theme')] ?? config( 'Images' Loading @@ -344,7 +345,7 @@ if (! function_exists('get_podcast_banner')) { if (! function_exists('get_podcast_banner_mimetype')) { function get_podcast_banner_mimetype(Podcast $podcast, string $size): string { if ($podcast->banner === null) { if (! $podcast->banner instanceof Image) { $sizes = config('Images') ->podcastBannerSizes; Loading @@ -365,7 +366,7 @@ if (! function_exists('get_podcast_banner_mimetype')) { if (! function_exists('get_avatar_url')) { function get_avatar_url(Person $person, string $size): string { if ($person->avatar === null) { if (! $person->avatar instanceof Image) { $defaultAvatarPath = config('Images') ->avatarDefaultPath; Loading