Merge pull request #1635 from pixelfed/staging

Staging
This commit is contained in:
daniel 2019-08-21 22:20:09 -06:00 committed by GitHub
commit d13a13317f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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'])) {