1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-27 18:26:50 +00:00

Merge pull request #4003 from pixelfed/staging

Update AP Inbox
This commit is contained in:
daniel 2022-12-24 05:25:25 -07:00 committed by GitHub
commit a15e3ec03a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -646,7 +646,12 @@ class Inbox
DeleteRemoteProfilePipeline::dispatch($profile)->onQueue('delete');
return;
} else {
if(!isset($obj['id'], $this->payload['object'], $this->payload['object']['id'])) {
if(!isset(
$obj['id'],
$this->payload['object'],
$this->payload['object']['id'],
$this->payload['object']['type']
)) {
return;
}
$type = $this->payload['object']['type'];
@ -664,7 +669,7 @@ class Inbox
if(!$profile || $profile->private_key != null) {
return;
}
DeleteRemoteProfilePipeline::dispatch($profile)->onQueue('delete');
DeleteRemoteProfilePipeline::dispatch($profile)->onQueue('inbox');
return;
break;