From b42469111093846f517742a0ee58a9dc9aa9fb4d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 5 Apr 2022 21:25:01 -0600 Subject: [PATCH] Update DeleteWorker, fixes #3338 --- app/Jobs/InboxPipeline/DeleteWorker.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Jobs/InboxPipeline/DeleteWorker.php b/app/Jobs/InboxPipeline/DeleteWorker.php index bed75f1d..5ec79130 100644 --- a/app/Jobs/InboxPipeline/DeleteWorker.php +++ b/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; }