We haven't created the Deleted_notice yet, just use target URI directly

This commit is contained in:
Mikael Nordfeldth 2015-10-03 15:39:06 +02:00
parent db726ca294
commit e6d7534a88

View File

@ -166,12 +166,11 @@ class Deleted_notice extends Managed_DataObject
static public function extendActivity(Notice $stored, Activity $act, Profile $scoped=null) static public function extendActivity(Notice $stored, Activity $act, Profile $scoped=null)
{ {
$object = self::fromStored($stored); $act->target = new ActivityObject();
$act->target->id = $stored->getUri();
$act->target = $object->asActivityObject();
$act->objects = array(clone($act->target)); $act->objects = array(clone($act->target));
$act->context->replyToID = $object->getTargetUri(); $act->context->replyToID = $stored->getUri();
$act->title = ActivityUtils::verbToTitle($act->verb); $act->title = ActivityUtils::verbToTitle($act->verb);
} }