]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Search/Index.php
Merge pull request #8900 from tobiasd/20200718-serverblocklistcsv
[friendica.git] / src / Module / Search / Index.php
index aca2934f650d6739ba623fdd5dc8e09cbbaaa197..bf3ae2585b19de398b99ef90f2f9163aa8c35b4c 100644 (file)
@@ -176,7 +176,7 @@ class Index extends BaseSearch
                }
 
                if (!DBA::isResult($r)) {
-                       info(DI::l10n()->t('No results.'));
+                       notice(DI::l10n()->t('No results.'));
                        return $o;
                }
 
@@ -237,13 +237,13 @@ class Index extends BaseSearch
                } else {
                        // Cheaper local lookup for anonymous users, no probe
                        if ($isAddr) {
-                               $contact = Contact::selectFirst(['id' => 'cid'], ['addr' => $search, 'uid' => 0]);
+                               $contact = Contact::selectFirst(['id'], ['addr' => $search, 'uid' => 0]);
                        } else {
-                               $contact = Contact::getDetailsByURL($search, 0, ['cid' => 0]);
+                               $contact = Contact::getByURL($search, null, ['id']) ?: ['id' => 0];
                        }
 
                        if (DBA::isResult($contact)) {
-                               $contact_id = $contact['cid'];
+                               $contact_id = $contact['id'];
                        }
                }