mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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',
|
'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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue