Fix style error

This commit is contained in:
Hank Grabowski 2023-02-15 15:13:30 -05:00
parent c084e6a427
commit cb1adf983b

View File

@ -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);