mirror of
https://github.com/friendica/friendica
synced 2025-04-26 05:50:11 +00:00
Issue 8735: Ensure the correct data type for "hide"
This commit is contained in:
parent
3eb3fe8e98
commit
bc4e5b4d69
2 changed files with 7 additions and 7 deletions
|
@ -627,11 +627,6 @@ class GContact
|
|||
$contact['network'] = Protocol::OSTATUS;
|
||||
}
|
||||
|
||||
// All new contacts are hidden by default
|
||||
if (!isset($contact['hide'])) {
|
||||
$contact['hide'] = true;
|
||||
}
|
||||
|
||||
// Remove unwanted parts from the contact url (e.g. '?zrl=...')
|
||||
if (in_array($contact['network'], Protocol::FEDERATED)) {
|
||||
$contact['url'] = self::cleanContactUrl($contact['url']);
|
||||
|
@ -646,6 +641,7 @@ class GContact
|
|||
$contact['location'] = $contact['location'] ?? '';
|
||||
$contact['about'] = $contact['about'] ?? '';
|
||||
$contact['generation'] = $contact['generation'] ?? 0;
|
||||
$contact['hide'] = $contact['hide'] ?? true;
|
||||
|
||||
$fields = ['name' => $contact['name'], 'nick' => $contact['nick'] ?? '', 'addr' => $contact['addr'] ?? '', 'network' => $contact['network'],
|
||||
'url' => $contact['url'], 'nurl' => Strings::normaliseLink($contact['url']), 'photo' => $contact['photo'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue