mirror of
https://github.com/friendica/friendica
synced 2024-11-18 19:03:40 +00:00
Merge pull request #8969 from annando/fix-acl-search
Contact search is fixed
This commit is contained in:
commit
1424e487a3
1 changed files with 1 additions and 2 deletions
|
@ -56,7 +56,6 @@ class Acl extends BaseModule
|
||||||
}
|
}
|
||||||
|
|
||||||
$type = $_REQUEST['type'] ?? self::TYPE_MENTION_CONTACT_GROUP;
|
$type = $_REQUEST['type'] ?? self::TYPE_MENTION_CONTACT_GROUP;
|
||||||
|
|
||||||
if ($type === self::TYPE_GLOBAL_CONTACT) {
|
if ($type === self::TYPE_GLOBAL_CONTACT) {
|
||||||
$o = self::globalContactSearch();
|
$o = self::globalContactSearch();
|
||||||
} else {
|
} else {
|
||||||
|
@ -81,7 +80,7 @@ class Acl extends BaseModule
|
||||||
$contacts[] = [
|
$contacts[] = [
|
||||||
'photo' => Contact::getMicro($contact),
|
'photo' => Contact::getMicro($contact),
|
||||||
'name' => htmlspecialchars($contact['name']),
|
'name' => htmlspecialchars($contact['name']),
|
||||||
'nick' => $contact['nick'],
|
'nick' => $contact['addr'] ?: $contact['url'],
|
||||||
'network' => $contact['network'],
|
'network' => $contact['network'],
|
||||||
'link' => $contact['url'],
|
'link' => $contact['url'],
|
||||||
'forum' => $contact['contact-type'] == Contact::TYPE_COMMUNITY,
|
'forum' => $contact['contact-type'] == Contact::TYPE_COMMUNITY,
|
||||||
|
|
Loading…
Reference in a new issue