Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / actions / apistatusesshow.php
index 9dec06c390fdec731cdab432d176dcd32c9dfd61..988ed804e91fddf7c52ea80639afbfb76d84c485 100644 (file)
@@ -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));
         }