From: Mikael Nordfeldth Date: Sat, 3 Oct 2015 13:39:06 +0000 (+0200) Subject: We haven't created the Deleted_notice yet, just use target URI directly X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e6d7534a88de35fff12d9d61a872dfec6f4a5b4f;p=quix0rs-gnu-social.git We haven't created the Deleted_notice yet, just use target URI directly --- 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); }