diff --git a/app/Services/Federation/ActiveSharedInboxService.php b/app/Services/Federation/ActiveSharedInboxService.php index 4f7020a8f..7339ac54f 100644 --- a/app/Services/Federation/ActiveSharedInboxService.php +++ b/app/Services/Federation/ActiveSharedInboxService.php @@ -26,7 +26,7 @@ class ActiveSharedInboxService return $res; } - if (! $res && self::count() == '0') { + if (self::count() == '0') { return self::warmCheck(); } } diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 5cfc05674..1bc0cd30e 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -899,7 +899,7 @@ class Inbox break; case 'Announce': - if (is_array($obj) && isset($obj['object'])) { + if (isset($obj['object'])) { $obj = $obj['object']; } if (! is_string($obj)) {