From: Hank Grabowski Date: Wed, 15 Feb 2023 20:13:30 +0000 (-0500) Subject: Fix style error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cb1adf983b2fc96bea763788b51036486c95bdaa;p=friendica.git Fix style error --- 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);