mirror of
https://github.com/friendica/friendica
synced 2024-12-02 20:15:22 +01:00
Only fetch the gsid when it had been empty before
This commit is contained in:
parent
e27915a819
commit
21ab11ac18
1 changed files with 3 additions and 1 deletions
|
@ -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']) {
|
||||
|
|
Loading…
Reference in a new issue