Store delete verb as object_type=activity

This commit is contained in:
Mikael Nordfeldth 2015-10-03 12:29:22 +02:00
parent dac617d95a
commit 2e77a83816

View File

@ -149,10 +149,11 @@ class Deleted_notice extends Managed_DataObject
{ {
$actobj = new ActivityObject(); $actobj = new ActivityObject();
$actobj->id = $this->getUri(); $actobj->id = $this->getUri();
$actobj->type = ActivityUtils::resolveUri(self::getObjectType()); $actobj->type = ActivityObject::ACTIVITY;
$actobj->actor = $this->getActorObject(); $actobj->actor = $this->getActorObject();
$actobj->target = new ActivityObject(); $actobj->target = new ActivityObject();
$actobj->target->id = $this->getTargetUri(); $actobj->target->id = $this->getTargetUri();
$actobj->target->type = ActivityUtils::resolveUri(self::getObjectType());
$actobj->objects = array(clone($actobj->target)); $actobj->objects = array(clone($actobj->target));
$actobj->verb = ActivityVerb::DELETE; $actobj->verb = ActivityVerb::DELETE;
$actobj->title = ActivityUtils::verbToTitle($actobj->verb); $actobj->title = ActivityUtils::verbToTitle($actobj->verb);