]> git.mxchange.org Git - friendica.git/commitdiff
Only update the contact entry with uid=0
authorMichael Vogel <icarus@dabo.de>
Fri, 1 Apr 2016 19:41:37 +0000 (21:41 +0200)
committerMichael Vogel <icarus@dabo.de>
Fri, 1 Apr 2016 19:41:37 +0000 (21:41 +0200)
include/Scrape.php

index deff0b080f8bd0582f9e6a9212ab8c8af2c8bc55..3fead0c415d085ffcd0927922138f395691a0b5b 100644 (file)
@@ -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"]),