Skip to content
Snippets Groups Projects
Commit 61554be1 authored by Benjamin Bellamy's avatar Benjamin Bellamy :speech_balloon:
Browse files

fix(partner): set correct image URL

parent 1d00a238
No related branches found
No related tags found
1 merge request!153fix(partner): set correct image URL
Pipeline #1018 passed
......@@ -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 : '');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment