We haven't created the Deleted_notice yet, just use target URI directly
This commit is contained in:
parent
db726ca294
commit
e6d7534a88
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user