|
@@ -223,6 +223,9 @@ class InboxValidator implements ShouldQueue
|
|
|
'User-Agent' => 'PixelfedBot v0.1 - https://pixelfed.org',
|
|
|
])->get($actor->remote_url);
|
|
|
$res = json_decode($res->body(), true, 8);
|
|
|
+ if(!$res || empty($res) || !isset($res['publicKey']) || !isset($res['publicKey']['id'])) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
if($res['publicKey']['id'] !== $actor->key_id) {
|
|
|
return;
|
|
|
}
|