From e6d7534a88de35fff12d9d61a872dfec6f4a5b4f Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 3 Oct 2015 15:39:06 +0200 Subject: [PATCH] We haven't created the Deleted_notice yet, just use target URI directly --- plugins/ActivityModeration/classes/Deleted_notice.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/ActivityModeration/classes/Deleted_notice.php b/plugins/ActivityModeration/classes/Deleted_notice.php index 904088b996..7c58f5b455 100644 --- a/plugins/ActivityModeration/classes/Deleted_notice.php +++ b/plugins/ActivityModeration/classes/Deleted_notice.php @@ -166,12 +166,11 @@ class Deleted_notice extends Managed_DataObject static public function extendActivity(Notice $stored, Activity $act, Profile $scoped=null) { - $object = self::fromStored($stored); - - $act->target = $object->asActivityObject(); + $act->target = new ActivityObject(); + $act->target->id = $stored->getUri(); $act->objects = array(clone($act->target)); - $act->context->replyToID = $object->getTargetUri(); + $act->context->replyToID = $stored->getUri(); $act->title = ActivityUtils::verbToTitle($act->verb); } -- 2.39.5