1
0
Daniel Supernault 3 жил өмнө
parent
commit
b424691110

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

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