mirror of
https://github.com/friendica/friendica
synced 2025-05-11 07:44:16 +02:00
Rename ApipResponse->exit* methods to better show their meaning
This commit is contained in:
parent
960171c4e0
commit
642baa1f2a
68 changed files with 88 additions and 88 deletions
|
@ -51,6 +51,6 @@ class Lookup extends BaseApi
|
|||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
$this->response->exit('users', ['user' => $users], $this->parameters['extension'] ?? null);
|
||||
$this->response->addFormattedContent('users', ['user' => $users], $this->parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,6 +69,6 @@ class Search extends BaseApi
|
|||
throw new BadRequestException('No search term specified.');
|
||||
}
|
||||
|
||||
$this->response->exit('users', $userlist, $this->parameters['extension'] ?? null);
|
||||
$this->response->addFormattedContent('users', $userlist, $this->parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,6 +48,6 @@ class Show extends BaseApi
|
|||
// "uid" is only needed for some internal stuff, so remove it from here
|
||||
unset($user_info['uid']);
|
||||
|
||||
$this->response->exit('user', ['user' => $user_info], $this->parameters['extension'] ?? null);
|
||||
$this->response->addFormattedContent('user', ['user' => $user_info], $this->parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue