From cb1adf983b2fc96bea763788b51036486c95bdaa Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Wed, 15 Feb 2023 15:13:30 -0500 Subject: [PATCH] Fix style error --- src/Module/Api/Mastodon/Search.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Module/Api/Mastodon/Search.php b/src/Module/Api/Mastodon/Search.php index 0306777117..96d41c3b2e 100644 --- a/src/Module/Api/Mastodon/Search.php +++ b/src/Module/Api/Mastodon/Search.php @@ -108,8 +108,7 @@ class Search extends BaseApi */ private static function searchAccounts(int $uid, string $q, bool $resolve, int $limit, int $offset, bool $following) { - if ( - ($offset == 0) && (strrpos($q, '@') > 0 || Network::isValidHttpUrl($q)) + if (($offset == 0) && (strrpos($q, '@') > 0 || Network::isValidHttpUrl($q)) && $id = Contact::getIdForURL($q, 0, $resolve ? null : false) ) { return DI::mstdnAccount()->createFromContactId($id, $uid); -- 2.39.5