From 39d671079863e3ba18534094146b32eaebd617a8 Mon Sep 17 00:00:00 2001 From: Dag Date: Fri, 22 Sep 2023 20:41:39 +0200 Subject: [PATCH] fix(twitch) (#3685) --- bridges/TwitchBridge.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bridges/TwitchBridge.php b/bridges/TwitchBridge.php index e4abaa60..4cc0375d 100644 --- a/bridges/TwitchBridge.php +++ b/bridges/TwitchBridge.php @@ -96,6 +96,9 @@ EOD; throw new \Exception(sprintf('Unable to find channel `%s`', $channel)); } $user = $data->user; + if ($user->videos === null) { + throw new HttpException('Service Unavailable', 503); + } foreach ($user->videos->edges as $edge) { $video = $edge->node;