mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-03 23:09:18 +02:00
fix(partner): set correct image URL
This commit is contained in:
parent
1d00a23866
commit
61554be12a
1 changed files with 2 additions and 5 deletions
|
|
@ -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 : '');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue