1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-25 01:05:36 +00:00
$activity is not being initialized correctly, so just use $res directly for now
This commit is contained in:
trwnh 2019-08-21 23:14:39 -05:00 committed by GitHub
parent 9788c80ca9
commit 274a22c1c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}
}