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:
parent
9b68364b86
commit
f622a541c3
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ class Status extends BaseProfile
|
||||||
$permissionSets = DI::permissionSet()->selectByContactId($remote_user, $profile['uid']);
|
$permissionSets = DI::permissionSet()->selectByContactId($remote_user, $profile['uid']);
|
||||||
if (!empty($permissionSets)) {
|
if (!empty($permissionSets)) {
|
||||||
$condition = ['psid' => array_merge($permissionSets->column('id'),
|
$condition = ['psid' => array_merge($permissionSets->column('id'),
|
||||||
[DI::permissionSet()->selectEmptyForUser($profile['uid'])])];
|
[DI::permissionSet()->selectEmptyForUser($profile['uid'])->id])];
|
||||||
}
|
}
|
||||||
} elseif ($profile['uid'] == local_user()) {
|
} elseif ($profile['uid'] == local_user()) {
|
||||||
$condition = [];
|
$condition = [];
|
||||||
|
|
Loading…
Reference in a new issue