]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Search.php
Allow nullable UID in PConfigCache
[friendica.git] / src / Core / Search.php
index 48231f08247a94c1206e8c8f62a774dbc8253f53..9f8375da12f66e539a25d1da0954a3c14b34ca1a 100644 (file)
@@ -49,7 +49,7 @@ class Search extends BaseObject
                                return $emptyResultList;
                        }
 
-                       if (!(in_array($user_data["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::OSTATUS, Protocol::DIASPORA]))) {
+                       if (!(in_array($user_data["network"], Protocol::FEDERATED))) {
                                return $emptyResultList;
                        }
 
@@ -107,8 +107,7 @@ class Search extends BaseObject
                        $searchUrl .= '&page=' . $page;
                }
 
-               $red        = 0;
-               $resultJson = Network::fetchUrl($searchUrl, false, $red, 0, 'application/json');
+               $resultJson = Network::fetchUrl($searchUrl, false, 0, 'application/json');
 
                $results = json_decode($resultJson, true);