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
No related merge requests found
...@@ -626,15 +626,12 @@ class Episode extends Entity ...@@ -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 : '');
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment