]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Store delete verb as object_type=activity
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 3 Oct 2015 10:29:22 +0000 (12:29 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 3 Oct 2015 10:29:22 +0000 (12:29 +0200)
plugins/ActivityModeration/classes/Deleted_notice.php

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