From: Michael Date: Fri, 22 May 2020 11:29:58 +0000 (+0000) Subject: Only fetch the gsid when it had been empty before X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=21ab11ac18ba5593bab7f2bf37be5212f91e27da;p=friendica.git Only fetch the gsid when it had been empty before --- diff --git a/src/Model/APContact.php b/src/Model/APContact.php index 5112f3dd6c..73b6143b48 100644 --- a/src/Model/APContact.php +++ b/src/Model/APContact.php @@ -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']) {