mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Indention, documentation
This commit is contained in:
parent
4965d6aa54
commit
65b07aead4
2 changed files with 9 additions and 8 deletions
|
@ -3421,7 +3421,8 @@ class Item
|
|||
// Authenticated visitor - fetch the matching permissionsets
|
||||
$set = PermissionSet::get($owner_id, $remote_user);
|
||||
if (!empty($set)) {
|
||||
$condition = ["(`private` != ? OR (`private` = ? AND `wall` AND `psid` IN (?" . str_repeat(",?", count($set) - 1) . ")))",
|
||||
$condition = ["(`private` != ? OR (`private` = ? AND `wall`
|
||||
AND `psid` IN (" . implode(', ', array_fill(0, count($set), '?')) . ")))",
|
||||
Item::PRIVATE, Item::PRIVATE];
|
||||
$condition = array_merge($condition, $set);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue