From 75e7a678ceb1690cf7888b7427e6516cc5bd0946 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 19 Mar 2025 01:10:09 -0600 Subject: [PATCH] Update ActivityPub helpers --- app/Util/ActivityPub/Helpers.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index ac9f20bce..7be32ede7 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -599,7 +599,7 @@ class Helpers $reply_to = self::getReplyTo($activity); $ts = self::pluckval($activity['published']); $scope = self::getScope($activity, $url); - $commentsDisabled = isset($activity['commentsEnabled']) ? (bool)$activity['commentsEnabled'] == false : false; + $commentsDisabled = isset($activity['commentsEnabled']) ? (bool) $activity['commentsEnabled'] == false : false; $cw = self::getSensitive($activity, $url); if ($profile->unlisted) { @@ -1278,8 +1278,9 @@ class Helpers 'inbox_url' => $res['inbox'], 'outbox_url' => $res['outbox'] ?? null, 'public_key' => $res['publicKey']['publicKeyPem'], - 'indexable' => $res['indexable'] ?? false, + 'indexable' => isset($res['indexable']) ? (bool) $res['indexable'] : false, 'moved_to_profile_id' => $movedToPid, + 'is_private' => isset($res['manuallyApprovesFollowers']) ? (bool) $res['manuallyApprovesFollowers'] : true, ]; }