mirror of
https://github.com/friendica/friendica
synced 2025-04-29 03:04:22 +02:00
Check null for acl-fields
This commit is contained in:
parent
aa94d27e6e
commit
3eda62bfa6
5 changed files with 29 additions and 16 deletions
|
@ -276,10 +276,10 @@ class Notifier
|
|||
/** @var ACLFormatter $aclFormatter */
|
||||
$aclFormatter = BaseObject::getClass(ACLFormatter::class);
|
||||
|
||||
$allow_people = $aclFormatter->expand($parent['allow_cid']);
|
||||
$allow_groups = Group::expand($uid, $aclFormatter->expand($parent['allow_gid']),true);
|
||||
$deny_people = $aclFormatter->expand($parent['deny_cid']);
|
||||
$deny_groups = Group::expand($uid, $aclFormatter->expand($parent['deny_gid']));
|
||||
$allow_people = $aclFormatter->expand($parent['allow_cid'] ?? '');
|
||||
$allow_groups = Group::expand($uid, $aclFormatter->expand($parent['allow_gid'] ?? ''),true);
|
||||
$deny_people = $aclFormatter->expand($parent['deny_cid'] ?? '');
|
||||
$deny_groups = Group::expand($uid, $aclFormatter->expand($parent['deny_gid'] ?? ''));
|
||||
|
||||
// if our parent is a public forum (forum_mode == 1), uplink to the origional author causing
|
||||
// a delivery fork. private groups (forum_mode == 2) do not uplink
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue