瀏覽代碼

Update DeleteWorker, fixes #3338

Daniel Supernault 3 年之前
父節點
當前提交
b424691110
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/Jobs/InboxPipeline/DeleteWorker.php

+ 3 - 0
app/Jobs/InboxPipeline/DeleteWorker.php

@@ -213,6 +213,9 @@ class DeleteWorker implements ShouldQueue
 		  'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
 		])->get($actor->remote_url);
 		$res = json_decode($res->body(), true, 8);
+		if(!isset($res['publicKey'], $res['publicKey']['id'])) {
+			return;
+		}
 		if($res['publicKey']['id'] !== $actor->key_id) {
 			return;
 		}