Fix style error
This commit is contained in:
parent
c084e6a427
commit
cb1adf983b
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue