The local contact search now uses local data if present

This commit is contained in:
Michael Vogel 2016-06-05 22:21:34 +02:00
parent 3e7e866e13
commit 8fbcba0096

View File

@ -133,6 +133,8 @@ function dirfind_content(&$a, $prefix = "") {
if (poco_alternate_ostatus_url($result["url"]))
continue;
$result = get_contact_details_by_url($result["url"], local_user(), $result);
if ($result["name"] == "") {
$urlparts = parse_url($result["url"]);
$result["name"] = end(explode("/", $urlparts["path"]));