mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +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
|
||||
{
|
||||
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…
x
Reference in New Issue
Block a user