]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/deletenotice.php
Merge branch 'master' into nightly
[quix0rs-gnu-social.git] / actions / deletenotice.php
index 40b276a34895e664c2801fc4b741a876ae378360..f0aa767916f551caaf6e44cbe3104b012124ef03 100644 (file)
@@ -65,7 +65,7 @@ class DeletenoticeAction extends FormAction
     {
         if ($this->arg('yes')) {
             if (Event::handle('StartDeleteOwnNotice', array($this->scoped->getUser(), $this->notice))) {
-                $this->notice->delete();
+                $this->notice->deleteAs($this->scoped);
                 Event::handle('EndDeleteOwnNotice', array($this->scoped->getUser(), $this->notice));
             }
         } else {