]> git.mxchange.org Git - friendica.git/blobdiff - mod/unfollow.php
normalise_link calls
[friendica.git] / mod / unfollow.php
index e2ee312f2444d04b78ef9b7033e9a74c98aaa450..9ca965bfd08fccf369c35b43ebb800b039d15e7d 100644 (file)
@@ -28,8 +28,8 @@ function unfollow_post(App $a)
        $url = Strings::removeTags(trim(defaults($_REQUEST, 'url', '')));
 
        $condition = ["`uid` = ? AND (`rel` = ? OR `rel` = ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?)",
-               $uid, Contact::SHARING, Contact::FRIEND, normalise_link($url),
-               normalise_link($url), $url];
+               $uid, Contact::SHARING, Contact::FRIEND, Strings::normaliseLink($url),
+               Strings::normaliseLink($url), $url];
        $contact = DBA::selectFirst('contact', [], $condition);
 
        if (!DBA::isResult($contact)) {
@@ -83,8 +83,8 @@ function unfollow_content(App $a)
        $url = Strings::removeTags(trim($_REQUEST['url']));
 
        $condition = ["`uid` = ? AND (`rel` = ? OR `rel` = ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?)",
-               local_user(), Contact::SHARING, Contact::FRIEND, normalise_link($url),
-               normalise_link($url), $url];
+               local_user(), Contact::SHARING, Contact::FRIEND, Strings::normaliseLink($url),
+               Strings::normaliseLink($url), $url];
 
        $contact = DBA::selectFirst('contact', ['url', 'network', 'addr', 'name'], $condition);