$cache_key = 'oembed:' . $a->videowidth . ':' . $embedurl;
- $condition = ['url' => normalise_link($embedurl), 'maxwidth' => $a->videowidth];
+ $condition = ['url' => Strings::normaliseLink($embedurl), 'maxwidth' => $a->videowidth];
$oembed_record = DBA::selectFirst('oembed', ['content'], $condition);
if (DBA::isResult($oembed_record)) {
$json_string = $oembed_record['content'];
if (!empty($oembed->type) && $oembed->type != 'error') {
DBA::insert('oembed', [
- 'url' => normalise_link($embedurl),
+ 'url' => Strings::normaliseLink($embedurl),
'maxwidth' => $a->videowidth,
'content' => $json_string,
'created' => DateTimeFormat::utcNow()