mirror of
https://github.com/friendica/friendica
synced 2024-12-22 22:00:16 +00:00
spelling: formatter
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
532403ad15
commit
044bc8ddac
2 changed files with 7 additions and 7 deletions
|
@ -2501,12 +2501,12 @@ class Item
|
|||
*/
|
||||
public static function enumeratePermissions(array $obj, bool $check_dead = false): array
|
||||
{
|
||||
$aclFormater = DI::aclFormatter();
|
||||
$aclFormatter = DI::aclFormatter();
|
||||
|
||||
$allow_people = $aclFormater->expand($obj['allow_cid']);
|
||||
$allow_groups = Group::expand($obj['uid'], $aclFormater->expand($obj['allow_gid']), $check_dead);
|
||||
$deny_people = $aclFormater->expand($obj['deny_cid']);
|
||||
$deny_groups = Group::expand($obj['uid'], $aclFormater->expand($obj['deny_gid']), $check_dead);
|
||||
$allow_people = $aclFormatter->expand($obj['allow_cid']);
|
||||
$allow_groups = Group::expand($obj['uid'], $aclFormatter->expand($obj['allow_gid']), $check_dead);
|
||||
$deny_people = $aclFormatter->expand($obj['deny_cid']);
|
||||
$deny_groups = Group::expand($obj['uid'], $aclFormatter->expand($obj['deny_gid']), $check_dead);
|
||||
$recipients = array_unique(array_merge($allow_people, $allow_groups));
|
||||
$deny = array_unique(array_merge($deny_people, $deny_groups));
|
||||
$recipients = array_diff($recipients, $deny);
|
||||
|
|
|
@ -26,9 +26,9 @@ use Friendica\Util\ACLFormatter;
|
|||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* ACLFormater utility testing class
|
||||
* ACLFormatter utility testing class
|
||||
*/
|
||||
class ACLFormaterTest extends TestCase
|
||||
class ACLFormatterTest extends TestCase
|
||||
{
|
||||
public function assertAcl($text, array $assert = [])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue