]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
doActionPost for delete should use deleteAs
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 17:07:29 +0000 (18:07 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 21 Mar 2016 17:07:29 +0000 (18:07 +0100)
plugins/ActivityModeration/ActivityModerationPlugin.php

index e89ae61d661ef118e7a0bc75e478b89df9a06a88..ba53a13a8af3437e06d6af5f78e77665024446fa 100644 (file)
@@ -74,7 +74,7 @@ class ActivityModerationPlugin extends ActivityVerbHandlerPlugin
         switch (true) {
         case ActivityUtils::compareVerbs($verb, array(ActivityVerb::DELETE)):
             // do whatever preparation is necessary to delete a verb
-            $target->delete();
+            $target->deleteAs($scoped);
             break;
         default:
             throw new ServerException('ActivityVerb POST not handled by plugin that was supposed to do it.');