From 274a22c1c33d7043cf57541e3ed8c95f6f2ed05c Mon Sep 17 00:00:00 2001 From: trwnh Date: Wed, 21 Aug 2019 23:14:39 -0500 Subject: [PATCH] bandaid fix #1633 $activity is not being initialized correctly, so just use $res directly for now --- app/Util/ActivityPub/Helpers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index ce8cb4ae3..56ab4ff69 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -241,7 +241,7 @@ class Helpers { $scope = 'private'; - $cw = isset($activity['sensitive']) ? (bool) $activity['sensitive'] : false; + $cw = isset($res['sensitive']) ? (bool) $res['sensitive'] : false; if(isset($res['to']) == true) { if(is_array($res['to']) && in_array('https://www.w3.org/ns/activitystreams#Public', $res['to'])) { @@ -452,4 +452,4 @@ class Helpers { $response = curl_exec($ch); return; } -} \ No newline at end of file +}