]> git.mxchange.org Git - friendica.git/blobdiff - mod/match.php
Uncommon logger levels in Friendica (#5453)
[friendica.git] / mod / match.php
index 47b24e9f7e7582b60e63a029bc07d70be442e39c..b06007483554d9c6ae06a4d583a042ca90b50c57 100644 (file)
@@ -10,6 +10,7 @@ use Friendica\Core\System;
 use Friendica\Database\DBM;
 use Friendica\Model\Contact;
 use Friendica\Model\Profile;
+use Friendica\Util\Network;
 
 require_once 'include/text.php';
 require_once 'mod/proxy.php';
@@ -58,9 +59,9 @@ function match_content(App $a)
                }
 
                if (strlen(Config::get('system', 'directory'))) {
-                       $x = post_url(get_server().'/msearch', $params);
+                       $x = Network::post(get_server().'/msearch', $params);
                } else {
-                       $x = post_url(System::baseUrl() . '/msearch', $params);
+                       $x = Network::post(System::baseUrl() . '/msearch', $params);
                }
 
                $j = json_decode($x);
@@ -85,14 +86,14 @@ function match_content(App $a)
                                        $jj->photo = str_replace("http:///photo/", get_server()."/photo/", $jj->photo);
                                        $connlnk = System::baseUrl() . '/follow/?url=' . $jj->url;
                                        $photo_menu = [
-                                               'profile' => [L10n::t("View Profile"), Profile::zrl($jj->url)],
+                                               'profile' => [L10n::t("View Profile"), Contact::magicLink($jj->url)],
                                                'follow' => [L10n::t("Connect/Follow"), $connlnk]
                                        ];
 
                                        $contact_details = Contact::getDetailsByURL($jj->url, local_user());
 
                                        $entry = [
-                                               'url' => Profile::zrl($jj->url),
+                                               'url' => Contact::magicLink($jj->url),
                                                'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $jj->url),
                                                'name' => $jj->name,
                                                'details'       => $contact_details['location'],