diff --git a/bridges/PatreonBridge.php b/bridges/PatreonBridge.php index 3d19cd81ddb..ad140e41ab9 100644 --- a/bridges/PatreonBridge.php +++ b/bridges/PatreonBridge.php @@ -132,7 +132,8 @@ public function collectData() $audio = $this->findInclude($posts, 'media', $id)->attributes ?? null; } } - $thumbnail = $post->attributes->thumbnail->large ?? $post->attributes->thumbnail->url; + $thumbnail = $post->attributes->thumbnail->large ?? null; + $thumbnail = $thumbnail ?? $post->attributes->thumbnail->url; $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url; $thumbnail = $thumbnail ?? $post->attributes->image->url; $audio_filename = $audio->file_name ?? $item['title']; @@ -146,14 +147,16 @@ public function collectData() break; case 'video_embed': - $thumbnail = $post->attributes->thumbnail->large ?? $post->attributes->thumbnail->url; + $thumbnail = $post->attributes->thumbnail->large ?? null; + $thumbnail = $thumbnail ?? $post->attributes->thumbnail->url; $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url; $thumbnail = $thumbnail ?? $post->attributes->image->url; $item['content'] .= "
"; break; case 'video_external_file': - $thumbnail = $post->attributes->thumbnail->large ?? $post->attributes->thumbnail->url; + $thumbnail = $post->attributes->thumbnail->large ?? null; + $thumbnail = $thumbnail ?? $post->attributes->thumbnail->url; $thumbnail = $thumbnail ?? $post->attributes->image->thumb_url; $thumbnail = $thumbnail ?? $post->attributes->image->url; $item['content'] .= "";