Some more code styling
This commit is contained in:
parent
7a576111c7
commit
6e9dd7641f
|
@ -74,12 +74,14 @@ class Search extends BaseApi
|
||||||
}
|
}
|
||||||
if ($result instanceof ContactResult) {
|
if ($result instanceof ContactResult) {
|
||||||
$id = Contact::getIdForURL($result->getUrl(), 0, false);
|
$id = Contact::getIdForURL($result->getUrl(), 0, false);
|
||||||
|
|
||||||
$accounts[] = DI::mstdnAccount()->createFromContactId($id, $uid);
|
$accounts[] = DI::mstdnAccount()->createFromContactId($id, $uid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$contacts = Contact::searchByName($q, '', $uid);
|
$contacts = Contact::searchByName($q, '', $uid);
|
||||||
|
|
||||||
$counter = 0;
|
$counter = 0;
|
||||||
foreach ($contacts as $contact) {
|
foreach ($contacts as $contact) {
|
||||||
if (!in_array($contact['rel'], [Contact::SHARING, Contact::FRIEND])) {
|
if (!in_array($contact['rel'], [Contact::SHARING, Contact::FRIEND])) {
|
||||||
|
|
Loading…
Reference in a new issue