mirror of
https://github.com/friendica/friendica
synced 2025-04-19 05:50:10 +00:00
Move DirectMessages/Destory tests & fix Destroy condition
This commit is contained in:
parent
3374cac767
commit
0c4c6faa54
3 changed files with 113 additions and 98 deletions
|
@ -58,7 +58,7 @@ class Destroy extends BaseApi
|
|||
$parenturi = $request['friendica_parenturi'] ?? '';
|
||||
|
||||
// error if no id or parenturi specified (for clients posting parent-uri as well)
|
||||
if ($verbose && ($id == 0 || $parenturi == "")) {
|
||||
if ($verbose && $id == 0 && $parenturi == "") {
|
||||
$answer = ['result' => 'error', 'message' => 'message id or parenturi not specified'];
|
||||
$this->response->exit('direct_messages_delete', ['direct_messages_delete' => $answer], $this->parameters['extension'] ?? null);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue