Update AP Helpers, fix comment bug

This commit is contained in:
Daniel Supernault 2025-01-16 20:45:45 -07:00
parent f82dfe8b3e
commit 22eae69fd5
No known key found for this signature in database
GPG key ID: 23740873EE6F76A1

View file

@ -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) {