mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:42:53 +00:00
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)
|
private static function searchAccounts(int $uid, string $q, bool $resolve, int $limit, int $offset, bool $following)
|
||||||
{
|
{
|
||||||
if (
|
if (($offset == 0) && (strrpos($q, '@') > 0 || Network::isValidHttpUrl($q))
|
||||||
($offset == 0) && (strrpos($q, '@') > 0 || Network::isValidHttpUrl($q))
|
|
||||||
&& $id = Contact::getIdForURL($q, 0, $resolve ? null : false)
|
&& $id = Contact::getIdForURL($q, 0, $resolve ? null : false)
|
||||||
) {
|
) {
|
||||||
return DI::mstdnAccount()->createFromContactId($id, $uid);
|
return DI::mstdnAccount()->createFromContactId($id, $uid);
|
||||||
|
|
Loading…
Reference in a new issue