mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Unify request value handling
This commit is contained in:
parent
4319136421
commit
4724000d06
16 changed files with 105 additions and 73 deletions
|
@ -55,14 +55,14 @@ class Update extends BaseApi
|
|||
$type = $this->parameters['extension'] ?? '';
|
||||
|
||||
// input params
|
||||
$photo_id = $request['photo_id'] ?? null;
|
||||
$desc = $request['desc'] ?? null;
|
||||
$album = $request['album'] ?? null;
|
||||
$album_new = $request['album_new'] ?? null;
|
||||
$allow_cid = $request['allow_cid'] ?? null;
|
||||
$deny_cid = $request['deny_cid' ] ?? null;
|
||||
$allow_gid = $request['allow_gid'] ?? null;
|
||||
$deny_gid = $request['deny_gid' ] ?? null;
|
||||
$photo_id = $this->getRequestValue($request, 'photo_id');
|
||||
$desc = $this->getRequestValue($request, 'desc');
|
||||
$album = $this->getRequestValue($request, 'album');
|
||||
$album_new = $this->getRequestValue($request, 'album_new');
|
||||
$allow_cid = $this->getRequestValue($request, 'allow_cid');
|
||||
$deny_cid = $this->getRequestValue($request, 'deny_cid');
|
||||
$allow_gid = $this->getRequestValue($request, 'allow_gid');
|
||||
$deny_gid = $this->getRequestValue($request, 'deny_gid');
|
||||
|
||||
// do several checks on input parameters
|
||||
// we do not allow calls without album string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue