mirror of
https://github.com/friendica/friendica
synced 2025-04-25 12:30:11 +00:00
Using "post" when deleting, fixing deleting
This commit is contained in:
parent
686785049e
commit
88e276843e
5 changed files with 72 additions and 53 deletions
|
@ -50,7 +50,7 @@ class ScheduledStatuses extends BaseApi
|
|||
}
|
||||
|
||||
$condtion = ['id' => $parameters['id'], 'uid' => $uid];
|
||||
$post = DBA::selectFirst('delayed-post', ['id'], $condtion);
|
||||
$post = DBA::selectFirst('delayed-post', ['id', 'wid'], $condtion);
|
||||
if (empty($post['id'])) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
@ -59,6 +59,10 @@ class ScheduledStatuses extends BaseApi
|
|||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
||||
if (!DBA::delete('workerqueue', ['id' => $post['wid']])) {
|
||||
DI::mstdnError()->RecordNotFound();
|
||||
}
|
||||
|
||||
System::jsonExit([]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue