X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Fapistatusesdestroy.php;h=e1783f258ac5728f7936e827b0678c0377047cad;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=8641518733d7db6efed08d31bc2a2579a8594b67;hpb=b8506d775833fa7ea53e08c58fdf23a4d1257727;p=quix0rs-gnu-social.git diff --git a/actions/apistatusesdestroy.php b/actions/apistatusesdestroy.php index 8641518733..e1783f258a 100644 --- a/actions/apistatusesdestroy.php +++ b/actions/apistatusesdestroy.php @@ -124,7 +124,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction if ($this->user->id == $this->notice->profile_id) { if (Event::handle('StartDeleteOwnNotice', array($this->user, $this->notice))) { - $this->notice->delete(); + $this->notice->deleteAs($this->scoped); Event::handle('EndDeleteOwnNotice', array($this->user, $this->notice)); } $this->showNotice();