Skip to content

Commit

Permalink
Fixed image attribute title for oEmbed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Apr 8, 2024
1 parent 2203f9a commit ae7af69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/src/Stdlib/Oembed.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function renderOembed(PhpRenderer $view, array $oembed)
$type = $oembed['type'] ?? null;
if ('photo' === $type) {
$url = $oembed['url'] ?? null;
$data = $oembed['oembed'] ?? [];
return sprintf(
'<img loading="lazy" src="%s" width="%s" height="%s" alt="%s">',
$view->escapeHtml($url),
Expand Down

0 comments on commit ae7af69

Please sign in to comment.