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
1 changed files with 2 additions and 5 deletions

View File

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