forked from GNUsocial/gnu-social
doActionPost for delete should use deleteAs
This commit is contained in:
parent
55544845db
commit
51840a6693
@ -74,7 +74,7 @@ class ActivityModerationPlugin extends ActivityVerbHandlerPlugin
|
|||||||
switch (true) {
|
switch (true) {
|
||||||
case ActivityUtils::compareVerbs($verb, array(ActivityVerb::DELETE)):
|
case ActivityUtils::compareVerbs($verb, array(ActivityVerb::DELETE)):
|
||||||
// do whatever preparation is necessary to delete a verb
|
// do whatever preparation is necessary to delete a verb
|
||||||
$target->delete();
|
$target->deleteAs($scoped);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new ServerException('ActivityVerb POST not handled by plugin that was supposed to do it.');
|
throw new ServerException('ActivityVerb POST not handled by plugin that was supposed to do it.');
|
||||||
|
Loading…
Reference in New Issue
Block a user