Commit 61554be1 authored by Benjamin Bellamy's avatar Benjamin Bellamy 💬
Browse files

fix(partner): set correct image URL

parent 1d00a238
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -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 : '');
    }
}