From 6e9dd7641ff7c9f5d4ac6a7afa3a24a0e1267f82 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 9 May 2021 11:58:27 +0000 Subject: [PATCH] Some more code styling --- src/Module/Api/Mastodon/Accounts/Search.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Module/Api/Mastodon/Accounts/Search.php b/src/Module/Api/Mastodon/Accounts/Search.php index 0eda36e31..3509834fc 100644 --- a/src/Module/Api/Mastodon/Accounts/Search.php +++ b/src/Module/Api/Mastodon/Accounts/Search.php @@ -74,12 +74,14 @@ class Search extends BaseApi } if ($result instanceof ContactResult) { $id = Contact::getIdForURL($result->getUrl(), 0, false); + $accounts[] = DI::mstdnAccount()->createFromContactId($id, $uid); } } } } else { $contacts = Contact::searchByName($q, '', $uid); + $counter = 0; foreach ($contacts as $contact) { if (!in_array($contact['rel'], [Contact::SHARING, Contact::FRIEND])) {