mirror of
https://github.com/friendica/friendica
synced 2025-04-28 21:04:22 +02:00
Fix fetching contacts
This commit is contained in:
parent
b0086a49e2
commit
caf548e1a7
1 changed files with 7 additions and 5 deletions
|
@ -211,11 +211,13 @@ class Contact
|
||||||
|
|
||||||
// Add internal fields
|
// Add internal fields
|
||||||
$removal = [];
|
$removal = [];
|
||||||
foreach (['id', 'updated', 'network'] as $internal) {
|
if (!empty($fields)) {
|
||||||
if (!in_array($internal, $fields)) {
|
foreach (['id', 'updated', 'network'] as $internal) {
|
||||||
$fields[] = $internal;
|
if (!in_array($internal, $fields)) {
|
||||||
$removal[] = $internal;
|
$fields[] = $internal;
|
||||||
}
|
$removal[] = $internal;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// We first try the nurl (http://server.tld/nick), most common case
|
// We first try the nurl (http://server.tld/nick), most common case
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue