X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FGNUsocialPhotos%2Factions%2Feditphoto.php;h=8aa63a06d7b0f34924d1a621f3d33715708996a6;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=71c1e9fb28d20286e7e80652054856b5a3124428;hpb=b92ef93d36947e64da2e2078531848539d18bfea;p=quix0rs-gnu-social.git diff --git a/plugins/GNUsocialPhotos/actions/editphoto.php b/plugins/GNUsocialPhotos/actions/editphoto.php index 71c1e9fb28..8aa63a06d7 100644 --- a/plugins/GNUsocialPhotos/actions/editphoto.php +++ b/plugins/GNUsocialPhotos/actions/editphoto.php @@ -192,7 +192,7 @@ class EditphotoAction extends Action $this->photo->delete(); if (Event::handle('StartDeleteOwnNotice', array($this->user, $notice))) { - $notice->delete(); + $notice->deleteAs($this->scoped); Event::handle('EndDeleteOwnNotice', array($this->user, $notice)); } $this->showForm(_('Success!'));