]> git.mxchange.org Git - friendica.git/blobdiff - include/gprobe.php
Scrape: Changed detection for the profile link
[friendica.git] / include / gprobe.php
index 8e4d3715c016dc611833cc24a881f36c8d49202e..dfa9137d7de03d6677a20b29a7cdf699c51bb121 100644 (file)
@@ -58,10 +58,8 @@ function gprobe_run(&$argv, &$argc){
                if (is_null($result))
                        Cache::set("gprobe:".$urlparts["host"],serialize($arr));
 
-               if (!in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM))) {
-                       $arr["avatar"] = $arr["photo"];
+               if (!in_array($result["network"], array(NETWORK_FEED, NETWORK_PHANTOM)))
                        update_gcontact($arr);
-               }
 
                $r = q("SELECT `id`, `url`, `network` FROM `gcontact` WHERE `nurl` = '%s' ORDER BY `id` LIMIT 1",
                        dbesc(normalise_link($url))