Ver Fonte

Update AP Inbox

Daniel Supernault há 2 anos atrás
pai
commit
55d4388b63
1 ficheiros alterados com 7 adições e 2 exclusões
  1. 7 2
      app/Util/ActivityPub/Inbox.php

+ 7 - 2
app/Util/ActivityPub/Inbox.php

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