The local contact search now uses local data if present
This commit is contained in:
parent
3e7e866e13
commit
8fbcba0096
1 changed files with 2 additions and 0 deletions
|
@ -133,6 +133,8 @@ function dirfind_content(&$a, $prefix = "") {
|
||||||
if (poco_alternate_ostatus_url($result["url"]))
|
if (poco_alternate_ostatus_url($result["url"]))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
$result = get_contact_details_by_url($result["url"], local_user(), $result);
|
||||||
|
|
||||||
if ($result["name"] == "") {
|
if ($result["name"] == "") {
|
||||||
$urlparts = parse_url($result["url"]);
|
$urlparts = parse_url($result["url"]);
|
||||||
$result["name"] = end(explode("/", $urlparts["path"]));
|
$result["name"] = end(explode("/", $urlparts["path"]));
|
||||||
|
|
Loading…
Reference in a new issue