]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/OEmbed.php
normalise_link calls
[friendica.git] / src / Content / OEmbed.php
index 741f1f42d856989618944cac99f415cad1ffbe85..c77db3827f6faf873447cb6d601a42ba018292f9 100644 (file)
@@ -62,7 +62,7 @@ class OEmbed
 
                $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'];
@@ -117,7 +117,7 @@ class OEmbed
 
                        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()