Commit 61554be1 authored by Benjamin Bellamy's avatar Benjamin Bellamy 💬
Browse files

fix(partner): set correct image URL

parent 1d00a238
Pipeline #1018 passed with stages
in 9 minutes and 4 seconds
......@@ -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 : '');
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment