We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e6d7534a authored by mattl's avatar mattl

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

parent db726ca2
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment