X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fdiscover_poco.php;h=79958a8849a4235b7a53156cc5c2fdddd26de046;hb=f8ba1b6fae70896f3fc6875e2bdbc1b1bc0cacc5;hp=a4cf5db54e9abe603e7e50f1995d27274769cfb8;hpb=cd8be48ca703b8931d7dc85a0aea1837a21e56aa;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){