mirror of
https://code.castopod.org/adaures/castopod
synced 2025-05-29 05:22:02 +00:00
fix(partner): set correct image URL
This commit is contained in:
parent
1d00a23866
commit
61554be12a
@ -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 : '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user