Merge pull request #8969 from annando/fix-acl-search

Contact search is fixed
This commit is contained in:
Tobias Diekershoff 2020-08-04 10:37:00 +02:00 committed by GitHub
commit 1424e487a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,6 @@ class Acl extends BaseModule
}
$type = $_REQUEST['type'] ?? self::TYPE_MENTION_CONTACT_GROUP;
if ($type === self::TYPE_GLOBAL_CONTACT) {
$o = self::globalContactSearch();
} else {
@ -81,7 +80,7 @@ class Acl extends BaseModule
$contacts[] = [
'photo' => Contact::getMicro($contact),
'name' => htmlspecialchars($contact['name']),
'nick' => $contact['nick'],
'nick' => $contact['addr'] ?: $contact['url'],
'network' => $contact['network'],
'link' => $contact['url'],
'forum' => $contact['contact-type'] == Contact::TYPE_COMMUNITY,