Podcast image in meta tag

This commit is contained in:
2021-03-20 12:25:27 +01:00
parent 67e8184fc5
commit bf11bf9815

View File

@@ -50,7 +50,7 @@ class Podcast extends Model {
$this->metadata = (new MetaData()) $this->metadata = (new MetaData())
->set('title', $this->title) ->set('title', $this->title)
->set('description', strip_tags($this->excerpt())) ->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) ->set('audio', $this->url)
; ;
} }