doActionPost for delete should use deleteAs

This commit is contained in:
Mikael Nordfeldth 2016-03-21 18:07:29 +01:00
parent 55544845db
commit 51840a6693

View 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.');