1
0
Fork 0
forked from mirror/pixelfed

Update Inbox, fixes #3305

This commit is contained in:
Daniel Supernault 2022-03-16 21:25:15 -06:00
parent cd4f73bed9
commit 14231632d5
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -687,6 +687,11 @@ class Inbox
$profile = self::actorFirstOrCreate($actor); $profile = self::actorFirstOrCreate($actor);
$obj = $this->payload['object']; $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']) { switch ($obj['type']) {
case 'Accept': case 'Accept':
break; break;