fix(partner): set correct image URL

This commit is contained in:
Benjamin Bellamy 2021-08-31 08:52:28 +00:00
parent 1d00a23866
commit 61554be12a

View File

@ -626,15 +626,12 @@ class Episode extends Entity
public function getPartnerImageUrl(string $serviceSlug = null): string public function getPartnerImageUrl(string $serviceSlug = null): string
{ {
if ($serviceSlug !== null) {
return '&_from=' . $serviceSlug;
}
return rtrim($this->getPodcast()->partner_image_url, '/') . return rtrim($this->getPodcast()->partner_image_url, '/') .
'?pid=' . '?pid=' .
$this->getPodcast() $this->getPodcast()
->partner_id . ->partner_id .
'&guid=' . '&guid=' .
urlencode($this->attributes['guid']); urlencode($this->attributes['guid']) .
($serviceSlug !== null ? '&_from=' . $serviceSlug : '');
} }
} }