forked from mirror/pixelfed
Update DeleteWorker, fixes #3338
This commit is contained in:
parent
f6f2c27874
commit
b424691110
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue