]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apistatusesdestroy.php
I think all the notice deletion calls are event-compatible now
[quix0rs-gnu-social.git] / actions / apistatusesdestroy.php
index db41c87ad0f5cca2f443d4e247e53e5df1bf8959..2d32124c42d48bcd984f0423848f1b374cb05322 100644 (file)
@@ -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();