Jelajahi Sumber

Merge pull request #1634 from pixelfed/trwnh-patch-1

bandaid fix #1633
daniel 5 tahun lalu
induk
melakukan
c1110a024f
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      app/Util/ActivityPub/Helpers.php

+ 2 - 2
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;
 	}
-}
+}