]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
We haven't created the Deleted_notice yet, just use target URI directly
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 3 Oct 2015 13:39:06 +0000 (15:39 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 3 Oct 2015 13:39:57 +0000 (15:39 +0200)
plugins/ActivityModeration/classes/Deleted_notice.php

index 904088b996cd015fc2048fe94d7e4694c975e840..7c58f5b4553da912bd10dea24109885f7a72b603 100644 (file)
@@ -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);
     }