浏览代码

Update FanoutDeletePipeline, fix AP object

Daniel Supernault 2 年之前
父节点
当前提交
0d802c313b
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Jobs/DeletePipeline/FanoutDeletePipeline.php

+ 3 - 3
app/Jobs/DeletePipeline/FanoutDeletePipeline.php

@@ -53,10 +53,10 @@ class FanoutDeletePipeline implements ShouldQueue
         	"id" => $profile->permalink('#delete'),
         	"type" => "Delete",
         	"actor" => $profile->permalink(),
-        	"to" => [
-        		"https://www.w3.org/ns/activitystreams#Public",
+        	"object" => [
+        		"type" => "Person",
+				"id" => $profile->permalink()
         	],
-        	"object" => $profile->permalink(),
         ];
 
         $payload = json_encode($activity);