]> git.mxchange.org Git - friendica.git/commitdiff
Contact search is fixed
authorMichael <heluecht@pirati.ca>
Tue, 4 Aug 2020 05:44:38 +0000 (05:44 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 4 Aug 2020 05:44:38 +0000 (05:44 +0000)
src/Module/Search/Acl.php

index 7e7a0d27f5b9f2c657fce43683339b3211a25248..24168cc21e5f11ebebc462557c0310fd2635f554 100644 (file)
@@ -56,7 +56,7 @@ class Acl extends BaseModule
                }
 
                $type = $_REQUEST['type'] ?? self::TYPE_MENTION_CONTACT_GROUP;
-
+Logger::info('Blubb', ['parameters' => $parameters]);
                if ($type === self::TYPE_GLOBAL_CONTACT) {
                        $o = self::globalContactSearch();
                } else {
@@ -81,7 +81,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,