From bf11bf9815b509083aca1f4df361c2726d75a48d Mon Sep 17 00:00:00 2001 From: Mischa Spelt Date: Sat, 20 Mar 2021 12:25:27 +0100 Subject: [PATCH] Podcast image in meta tag --- common/classes/Podcast.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/classes/Podcast.php b/common/classes/Podcast.php index 06dc91f..61ee2b1 100644 --- a/common/classes/Podcast.php +++ b/common/classes/Podcast.php @@ -50,7 +50,7 @@ class Podcast extends Model { $this->metadata = (new MetaData()) ->set('title', $this->title) ->set('description', strip_tags($this->excerpt())) - ->set('image', isset($this->images) && count($this->images) ? $this->images[0]->url : null ) + ->set('image', isset($this->image) ? $this->image->url : null ) ->set('audio', $this->url) ; }