X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=mod%2Fdirfind.php;h=a64a804ba8d40dfbec5e45deafb7d3ed70c751bf;hb=47bd3243cdb4a4840ca4d40452402a86b792ce1b;hp=7eb830bb6896479dd12f0289bbfa60097552cd44;hpb=d3e666f71a3a0c5e3ddd420dc71b5ceeacae81b5;p=friendica.git diff --git a/mod/dirfind.php b/mod/dirfind.php index 7eb830bb68..a64a804ba8 100644 --- a/mod/dirfind.php +++ b/mod/dirfind.php @@ -1,11 +1,15 @@ page['aside'] .= follow_widget(); } - - -function dirfind_content(&$a, $prefix = "") { +function dirfind_content(App $a, $prefix = "") { $community = false; $discover_user = false; @@ -73,9 +75,9 @@ function dirfind_content(&$a, $prefix = "") { $j->results[] = $objresult; // Add the contact to the global contacts if it isn't already in our system - if (($contact["cid"] == 0) AND ($contact["zid"] == 0) AND ($contact["gid"] == 0)) - poco_check($user_data["url"], $user_data["name"], $user_data["network"], $user_data["photo"], - "", "", "", "", "", datetime_convert(), 0); + if (($contact["cid"] == 0) AND ($contact["zid"] == 0) AND ($contact["gid"] == 0)) { + update_gcontact($user_data); + } } elseif ($local) { if ($community)