mirror of
https://github.com/friendica/friendica
synced 2025-04-24 03:10:11 +00:00
Changed:
- used `$this->getRequestValue($request, 'foo', <bar>)` instead of `$request['foo'] ?? <bar>` - fixed wrong variable naming - changed double-quotes to single - see https://github.com/friendica/friendica/issues/11631#issuecomment-1196410497
This commit is contained in:
parent
5ec407699b
commit
eaed3945d1
21 changed files with 28 additions and 30 deletions
|
@ -55,9 +55,8 @@ class Destroy extends BaseApi
|
|||
$id = $this->getRequestValue($request, 'id', 0);
|
||||
$id = $this->getRequestValue($this->parameters, 'id', $id);
|
||||
|
||||
$verbose = $this->getRequestValue($request, 'friendica_verbose', false);
|
||||
|
||||
$parenturi = $request['friendica_parenturi'] ?? '';
|
||||
$verbose = $this->getRequestValue($request, 'friendica_verbose', false);
|
||||
$parenturi = $this->getRequestValue($request, 'friendica_parenturi', '');
|
||||
|
||||
// error if no id or parenturi specified (for clients posting parent-uri as well)
|
||||
if ($verbose && $id == 0 && $parenturi == "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue