]> git.mxchange.org Git - friendica.git/blobdiff - include/discover_poco.php
Merge pull request #2016 from fabrixxm/template_vars_hook
[friendica.git] / include / discover_poco.php
index a4cf5db54e9abe603e7e50f1995d27274769cfb8..79958a8849a4235b7a53156cc5c2fdddd26de046 100644 (file)
@@ -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){