]> git.mxchange.org Git - friendica.git/commitdiff
Some more code styling
authorMichael <heluecht@pirati.ca>
Sun, 9 May 2021 11:58:27 +0000 (11:58 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 9 May 2021 11:58:27 +0000 (11:58 +0000)
src/Module/Api/Mastodon/Accounts/Search.php

index 0eda36e31edf81d2f6ebda7b24e6990bdea0905a..3509834fc60f8f857f3ebd31a970ea5ac5b9e36c 100644 (file)
@@ -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])) {