diff --git a/bridges/PatreonBridge.php b/bridges/PatreonBridge.php index 3d19cd81..d72bde20 100644 --- a/bridges/PatreonBridge.php +++ b/bridges/PatreonBridge.php @@ -132,8 +132,9 @@ class PatreonBridge extends BridgeAbstract $audio = $this->findInclude($posts, 'media', $id)->attributes ?? null; } } - $thumbnail = $post->attributes->thumbnail->large ?? $post->attributes->thumbnail->url; - $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url; + $thumbnail = $post->attributes->thumbnail->large ?? null; + $thumbnail = $thumbnail ?? $post->attributes->thumbnail->url ?? null; + $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url ?? null; $thumbnail = $thumbnail ?? $post->attributes->image->url; $audio_filename = $audio->file_name ?? $item['title']; $download_url = $audio->download_url ?? $item['uri']; @@ -146,15 +147,17 @@ class PatreonBridge extends BridgeAbstract break; case 'video_embed': - $thumbnail = $post->attributes->thumbnail->large ?? $post->attributes->thumbnail->url; - $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url; + $thumbnail = $post->attributes->thumbnail->large ?? null; + $thumbnail = $thumbnail ?? $post->attributes->thumbnail->url ?? null; + $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url ?? null; $thumbnail = $thumbnail ?? $post->attributes->image->url; $item['content'] .= "
"; break; case 'video_external_file': - $thumbnail = $post->attributes->thumbnail->large ?? $post->attributes->thumbnail->url; - $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url; + $thumbnail = $post->attributes->thumbnail->large ?? null; + $thumbnail = $thumbnail ?? $post->attributes->thumbnail->url ?? null; + $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url ?? null; $thumbnail = $thumbnail ?? $post->attributes->image->url; $item['content'] .= ""; break; diff --git a/bridges/SteamAppNewsBridge.php b/bridges/SteamAppNewsBridge.php index 085e6978..81045800 100644 --- a/bridges/SteamAppNewsBridge.php +++ b/bridges/SteamAppNewsBridge.php @@ -41,8 +41,7 @@ class SteamAppNewsBridge extends BridgeAbstract $apiTarget = 'https://api.steampowered.com/ISteamNews/GetNewsForApp/v2/'; // Example with params: https://api.steampowered.com/ISteamNews/GetNewsForApp/v2/?appid=730&maxlength=0&count=20 // More info at dev docs https://partner.steamgames.com/doc/webapi/ISteamNews - $url = - $apiTarget + $url = $apiTarget . '?appid=' . $this->getInput('appid') . '&maxlength=' . $this->getInput('maxlength') . '&count=' . $this->getInput('count')