[AssociatedPressNewsBridge] fix checks (#2608)

This commit is contained in:
Bocki 2022-04-05 14:37:15 +02:00 committed by GitHub
parent 8f9314947b
commit 2c50bbae95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -200,14 +200,14 @@ class AssociatedPressNewsBridge extends BridgeAbstract {
$div->outertext = <<<EOD
<figure><img loading="lazy" src="{$mediaUrl}"/><figcaption>{$mediaCaption}</figcaption></figure>
EOD;
EOD;
}
if ($media['type'] === 'YouTube') {
$div->outertext = <<<EOD
<iframe src="https://www.youtube.com/embed/{$media['externalId']}" width="560" height="315">
</iframe>
EOD;
EOD;
}
}
}