From 55d4388b63f647ae1bef1be306d992f89ef99500 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 24 Dec 2022 05:24:09 -0700 Subject: [PATCH] Update AP Inbox --- app/Util/ActivityPub/Inbox.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 2399a3801..a771a9117 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -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;