From 2e77a83816725ca87b92f908f7b27b0a32ee7571 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 3 Oct 2015 12:29:22 +0200 Subject: [PATCH] Store delete verb as object_type=activity --- plugins/ActivityModeration/classes/Deleted_notice.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/ActivityModeration/classes/Deleted_notice.php b/plugins/ActivityModeration/classes/Deleted_notice.php index 790e2ab38d..e3723a329f 100644 --- a/plugins/ActivityModeration/classes/Deleted_notice.php +++ b/plugins/ActivityModeration/classes/Deleted_notice.php @@ -149,10 +149,11 @@ class Deleted_notice extends Managed_DataObject { $actobj = new ActivityObject(); $actobj->id = $this->getUri(); - $actobj->type = ActivityUtils::resolveUri(self::getObjectType()); + $actobj->type = ActivityObject::ACTIVITY; $actobj->actor = $this->getActorObject(); $actobj->target = new ActivityObject(); $actobj->target->id = $this->getTargetUri(); + $actobj->target->type = ActivityUtils::resolveUri(self::getObjectType()); $actobj->objects = array(clone($actobj->target)); $actobj->verb = ActivityVerb::DELETE; $actobj->title = ActivityUtils::verbToTitle($actobj->verb); -- 2.39.5