]> git.mxchange.org Git - friendica.git/commitdiff
Remove more deprecated "poco_check" calls
authorMichael <heluecht@pirati.ca>
Wed, 22 Mar 2017 07:11:58 +0000 (07:11 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 22 Mar 2017 07:11:58 +0000 (07:11 +0000)
include/discover_poco.php
mod/dirfind.php

index 3dba1f3215418d8d86617402616a74bcec5be79f..5a0ca70a472c9321588684bbc292fa098589e454 100644 (file)
@@ -232,7 +232,11 @@ function discover_directory($search) {
                        if ($data["network"] == NETWORK_DFRN) {
                                logger("Profile ".$jj->url." is reachable (".$search.")", LOGGER_DEBUG);
                                logger("Add profile ".$jj->url." to local directory (".$search.")", LOGGER_DEBUG);
-                               poco_check($data["url"], $data["name"], $data["network"], $data["photo"], "", "", "", $jj->tags, $data["addr"], "", 0);
+
+                               if ($jj->tags != "") {
+                                       $data["keywords"] = $jj->tags;
+                               }
+                               update_gcontact($data);
                        } else {
                                logger("Profile ".$jj->url." is not responding or no Friendica contact - but network ".$data["network"], LOGGER_DEBUG);
                        }
index 1b19ad92c459e6bad268224fbf2819fc53a7681d..c5844d13dfa742689c0e202a7a9cd92a9772fd68 100644 (file)
@@ -73,9 +73,9 @@ function dirfind_content(App $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)