Only update if there is a change

This commit is contained in:
Michael 2017-08-30 19:33:16 +00:00
parent 0083c16e87
commit 1cc50a80f4
2 changed files with 24 additions and 4 deletions

View file

@ -2200,6 +2200,10 @@ function update_gcontact($contact) {
$contact["updated"] = dbm::date();
}
if ($contact["network"] == NETWORK_TWITTER) {
$contact["server_url"] = 'http://twitter.com';
}
if ($contact["server_url"] == "") {
$data = Probe::uri($contact["url"]);
if ($data["network"] != NETWORK_PHANTOM) {