Update DeleteWorker, fixes #3338

This commit is contained in:
Daniel Supernault 2022-04-05 21:25:01 -06:00
parent f6f2c27874
commit b424691110
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}