]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/SearchDirectory.php
Merge pull request #10697 from MrPetovan/bug/10692-api-expand-entities
[friendica.git] / src / Worker / SearchDirectory.php
index 3bb5f1b8b296ff029edf4be4478ee7521fc3d812..bb69969b9e644a7f257f0ee9766a0ca48af530bd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -46,7 +46,7 @@ class SearchDirectory
                        }
                }
 
-               $x = DI::httpRequest()->fetch(Search::getGlobalDirectory() . '/lsearch?p=1&n=500&search=' . urlencode($search));
+               $x = DI::httpClient()->fetch(Search::getGlobalDirectory() . '/lsearch?p=1&n=500&search=' . urlencode($search));
                $j = json_decode($x);
 
                if (!empty($j->results)) {