Explorar o código

Update Inbox, fixes #3305

Daniel Supernault %!s(int64=3) %!d(string=hai) anos
pai
achega
14231632d5
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      app/Util/ActivityPub/Inbox.php

+ 5 - 0
app/Util/ActivityPub/Inbox.php

@@ -687,6 +687,11 @@ class Inbox
 		$profile = self::actorFirstOrCreate($actor);
 		$obj = $this->payload['object'];
 
+		// TODO: Some implementations do not inline the object, skip for now
+		if(!$obj || !is_array($obj) || !isset($obj['type'])) {
+			return;
+		}
+
 		switch ($obj['type']) {
 			case 'Accept':
 				break;