mirror of
https://github.com/friendica/friendica
synced 2024-12-23 16:00:16 +00: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;
|
$apcontact['baseurl'] = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($apcontact['baseurl'])) {
|
if (!empty($apcontact['baseurl']) && empty($fetched_contact['gsid'])) {
|
||||||
$apcontact['gsid'] = GServer::getID($apcontact['baseurl']);
|
$apcontact['gsid'] = GServer::getID($apcontact['baseurl']);
|
||||||
|
} elseif (!empty($fetched_contact['gsid'])) {
|
||||||
|
$apcontact['gsid'] = $fetched_contact['gsid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($apcontact['url'] == $apcontact['alias']) {
|
if ($apcontact['url'] == $apcontact['alias']) {
|
||||||
|
|
Loading…
Reference in a new issue