X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fdiscover_poco.php;h=79958a8849a4235b7a53156cc5c2fdddd26de046;hb=3cccb5ecb1cd010435bfc5058159d7ac9d958dcd;hp=a4cf5db54e9abe603e7e50f1995d27274769cfb8;hpb=098ccd09fa0cc0257ecbb59598d97246251b6d92;p=friendica.git diff --git a/include/discover_poco.php b/include/discover_poco.php index a4cf5db54e..79958a8849 100644 --- a/include/discover_poco.php +++ b/include/discover_poco.php @@ -146,7 +146,7 @@ function discover_directory($search) { } } - $x = fetch_url("http://dir.friendica.com/lsearch?p=1&n=500&search=".urlencode($search)); + $x = fetch_url(get_server()."/lsearch?p=1&n=500&search=".urlencode($search)); $j = json_decode($x); if(count($j->results)) @@ -183,7 +183,7 @@ function discover_directory($search) { poco_check($data["url"], $data["name"], $data["network"], $data["photo"], "", "", "", $jj->tags, $data["addr"], "", 0); } } - Cache::set("dirsearch:".$search, time()); + Cache::set("dirsearch:".$search, time(), CACHE_DAY); } if (array_search(__file__,get_included_files())===0){