]> git.mxchange.org Git - friendica-addons.git/blobdiff - remote_permissions/remote_permissions.php
Merge pull request #927 from nupplaphil/task/replace_getClass
[friendica-addons.git] / remote_permissions / remote_permissions.php
index 5adfc028559d726fce1b5442ef21ea66a3359b1b..7d42c5606295c0078f81f3f3bc3fdda3a8134e0c 100644 (file)
@@ -13,6 +13,7 @@ use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
 use Friendica\Core\Renderer;
 use Friendica\Database\DBA;
+use Friendica\DI;
 use Friendica\Util\Strings;
 
 function remote_permissions_install() {
@@ -123,10 +124,12 @@ function remote_permissions_content($a, $item_copy) {
 
                        $item = $r[0];
 
-                       $allowed_users = expand_acl($item['allow_cid']);
-                       $allowed_groups = expand_acl($item['allow_gid']);
-                       $deny_users = expand_acl($item['deny_cid']);
-                       $deny_groups = expand_acl($item['deny_gid']);
+                       $aclFormatter = DI::aclFormatter();
+
+                       $allowed_users = $aclFormatter->expand($item['allow_cid']);
+                       $allowed_groups = $aclFormatter->expand($item['allow_gid']);
+                       $deny_users = $aclFormatter->expand($item['deny_cid']);
+                       $deny_groups = $aclFormatter->expand($item['deny_gid']);
 
                        $o = L10n::t('Visible to:') . '<br />';
                        $allow = [];