]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/Item.php
Merge pull request #8957 from annando/server-peers
[friendica.git] / src / Content / Item.php
index 052670bc7f4c66866628d26fcd850729c3c7f1b1..c0b1d3b49a37d3baf1aaffd69245aec129965836 100644 (file)
@@ -130,7 +130,7 @@ class Item
                                // Checking for the alias that is used for OStatus
                                $pattern = '/[@!]\[url\=(.*?)\](.*?)\[\/url\]/ism';
                                if (preg_match($pattern, $tag, $matches)) {
-                                       $data = Contact::getByURL($matches[1], 0, ['alias', 'nick'], false);
+                                       $data = Contact::getByURL($matches[1], false, ['alias', 'nick']);
 
                                        if ($data['alias'] != '') {
                                                $newtag = '@[url=' . $data['alias'] . ']' . $data['nick'] . '[/url]';
@@ -150,7 +150,7 @@ class Item
 
                        // Try to detect the contact in various ways
                        if (strpos($name, 'http://') || strpos($name, '@')) {
-                               $contact = Contact::getByURLForUser($name, $profile_uid, []);
+                               $contact = Contact::getByURLForUser($name, $profile_uid);
                        } else {
                                $contact = false;
                                $fields = ['id', 'url', 'nick', 'name', 'alias', 'network', 'forum', 'prv'];