mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
We need "global"
This commit is contained in:
parent
ea498ff283
commit
b654af28fa
4 changed files with 14 additions and 2 deletions
|
@ -724,6 +724,16 @@ class Item extends BaseObject
|
|||
}
|
||||
}
|
||||
|
||||
// Is this item available in the global items (with uid=0)?
|
||||
if ($item["uid"] == 0) {
|
||||
$item["global"] = true;
|
||||
|
||||
// Set the global flag on all items if this was a global item entry
|
||||
dba::update('item', ['global' => true], ['uri' => $item["uri"]]);
|
||||
} else {
|
||||
$item["global"] = dba::exists('item', ['uid' => 0, 'uri' => $item["uri"]]);
|
||||
}
|
||||
|
||||
// ACL settings
|
||||
if (strlen($allow_cid) || strlen($allow_gid) || strlen($deny_cid) || strlen($deny_gid)) {
|
||||
$private = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue