mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
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