fix(twitch) (#3685)

This commit is contained in:
Dag 2023-09-22 20:41:39 +02:00 committed by GitHub
parent a3c29f3a52
commit 39d6710798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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;