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
1 changed files with 2 additions and 0 deletions

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"]));