From: Michael Vogel Date: Fri, 1 Apr 2016 19:41:37 +0000 (+0200) Subject: Only update the contact entry with uid=0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eeb462cd0460d029a8b9e29f3dd122eb16befec1;p=friendica.git Only update the contact entry with uid=0 --- diff --git a/include/Scrape.php b/include/Scrape.php index deff0b080f..3fead0c415 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -845,7 +845,7 @@ function probe_url($url, $mode = PROBE_NORMAL, $level = 1) { /// It should only be updated if the existing picture isn't existing anymore. if (($result['network'] != NETWORK_FEED) AND $result["addr"] AND $result["name"] AND $result["nick"]) q("UPDATE `contact` SET `addr` = '%s', `alias` = '%s', `name` = '%s', `nick` = '%s', - `name-date` = '%s', `uri-date` = '%s' WHERE `nurl` = '%s' AND NOT `self`", + `name-date` = '%s', `uri-date` = '%s' WHERE `nurl` = '%s' AND NOT `self` AND `uid` = 0", dbesc($result["addr"]), dbesc($result["alias"]), dbesc($result["name"]),