X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FSearch.php;h=9f8375da12f66e539a25d1da0954a3c14b34ca1a;hb=f70271aa5d40ce48ec92f1c6ec652c6a977e588c;hp=48231f08247a94c1206e8c8f62a774dbc8253f53;hpb=bd0c53673682d88b49c8eaf027e7ef5ad98ac311;p=friendica.git diff --git a/src/Core/Search.php b/src/Core/Search.php index 48231f0824..9f8375da12 100644 --- a/src/Core/Search.php +++ b/src/Core/Search.php @@ -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);