mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:10:11 +00:00
Replaced "filter_input" with the new request value function
This commit is contained in:
parent
720a43461d
commit
344d514857
11 changed files with 69 additions and 90 deletions
|
@ -52,8 +52,8 @@ class Destroy extends BaseApi
|
|||
BaseApi::checkAllowedScope(BaseApi::SCOPE_WRITE);
|
||||
$uid = BaseApi::getCurrentUserID();
|
||||
|
||||
$id = filter_var($request['id'] ?? 0, FILTER_VALIDATE_INT);
|
||||
$verbose = filter_var($request['friendica_verbose'] ?? false, FILTER_VALIDATE_BOOLEAN);
|
||||
$id = $this->getRequestValue($request, 'id', 0);
|
||||
$verbose = $this->getRequestValue($request, 'friendica_verbose', false);
|
||||
|
||||
$parenturi = $request['friendica_parenturi'] ?? '';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue