]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Search/Acl.php
Issue 9231: Speed up full text search
[friendica.git] / src / Module / Search / Acl.php
index 7e7a0d27f5b9f2c657fce43683339b3211a25248..e8b6f357d9c422280d805a922a60e4df55a28bdb 100644 (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,
@@ -351,7 +350,7 @@ class Acl extends BaseModule
                                                'type'    => 'c',
                                                'photo'   => Contact::getMicro($contact),
                                                'name'    => htmlspecialchars($contact['name']),
-                                               'id'      => intval($contact['cid']),
+                                               'id'      => intval($contact['id']),
                                                'network' => $contact['network'],
                                                'link'    => $contact['url'],
                                                'nick'    => htmlentities(($contact['nick'] ?? '') ?: $contact['addr']),