From 22eae69fd5bfb154dc90ca0313fea0b19943986b Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 16 Jan 2025 20:45:45 -0700 Subject: [PATCH] Update AP Helpers, fix comment bug --- app/Util/ActivityPub/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index 570d216ab..ac9f20bce 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 = $activity['commentsEnabled'] ?? false; + $commentsDisabled = isset($activity['commentsEnabled']) ? (bool)$activity['commentsEnabled'] == false : false; $cw = self::getSensitive($activity, $url); if ($profile->unlisted) {