Use entity property in DB condition in Module\Profile\Status

- Address https://github.com/friendica/friendica/issues/10756#issuecomment-939538157
This commit is contained in:
Hypolite Petovan 2021-10-13 00:09:14 -04:00
parent 9b68364b86
commit f622a541c3

View file

@ -213,7 +213,7 @@ class Status extends BaseProfile
$permissionSets = DI::permissionSet()->selectByContactId($remote_user, $profile['uid']);
if (!empty($permissionSets)) {
$condition = ['psid' => array_merge($permissionSets->column('id'),
[DI::permissionSet()->selectEmptyForUser($profile['uid'])])];
[DI::permissionSet()->selectEmptyForUser($profile['uid'])->id])];
}
} elseif ($profile['uid'] == local_user()) {
$condition = [];