]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apistatusesdestroy.php
Merge remote-tracking branch 'upstream/master'
[quix0rs-gnu-social.git] / actions / apistatusesdestroy.php
index 8641518733d7db6efed08d31bc2a2579a8594b67..e1783f258ac5728f7936e827b0678c0377047cad 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();