X-Git-Url: https://git.mxchange.org/?p=quix0rs-gnu-social.git;a=blobdiff_plain;f=actions%2Fapistatusesshow.php;fp=actions%2Fapistatusesshow.php;h=988ed804e91fddf7c52ea80639afbfb76d84c485;hp=9dec06c390fdec731cdab432d176dcd32c9dfd61;hb=4160a3fb730113f3d712bd777884c4b0482f6df1;hpb=abd90bbdf562614755802885dfb5673645df8575 diff --git a/actions/apistatusesshow.php b/actions/apistatusesshow.php index 9dec06c390..988ed804e9 100644 --- a/actions/apistatusesshow.php +++ b/actions/apistatusesshow.php @@ -236,7 +236,7 @@ class ApiStatusesShowAction extends ApiPrivateAuthAction } if (Event::handle('StartDeleteOwnNotice', array($this->auth_user, $this->notice))) { - $this->notice->delete(); + $this->notice->deleteAs($this->scoped); Event::handle('EndDeleteOwnNotice', array($this->auth_user, $this->notice)); }