Only fetch the gsid when it had been empty before

This commit is contained in:
Michael 2020-05-22 11:29:58 +00:00
parent e27915a819
commit 21ab11ac18

View File

@ -291,8 +291,10 @@ class APContact
$apcontact['baseurl'] = null;
}
if (!empty($apcontact['baseurl'])) {
if (!empty($apcontact['baseurl']) && empty($fetched_contact['gsid'])) {
$apcontact['gsid'] = GServer::getID($apcontact['baseurl']);
} elseif (!empty($fetched_contact['gsid'])) {
$apcontact['gsid'] = $fetched_contact['gsid'];
}
if ($apcontact['url'] == $apcontact['alias']) {