Commit c682f03a authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: replace essence with embera to create preview cards

parent fbd1a0cf
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();
        }

+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
+2 −2
Original line number Diff line number Diff line
@@ -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
+4 −3
Original line number Diff line number Diff line
@@ -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
@@ -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'
@@ -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;

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