]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/ACL.php
Merge pull request #13143 from MrPetovan/bug/12684-category-link
[friendica.git] / src / Core / ACL.php
index ba4564589db2baf4701115e64bf2955a4d3f49f9..aa5e2221b782493a4b782fe11dd0bea75596eeb9 100644 (file)
@@ -66,8 +66,9 @@ class ACL
 
                $tpl = Renderer::getMarkupTemplate('acl/message_recipient.tpl');
                $o = Renderer::replaceMacros($tpl, [
-                       '$contacts' => $contacts,
-                       '$selected' => $selected,
+                       '$contacts'      => $contacts,
+                       '$contacts_json' => json_encode($contacts),
+                       '$selected'      => $selected,
                ]);
 
                Hook::callAll(DI::args()->getModuleName() . '_post_recipient', $o);
@@ -327,9 +328,9 @@ class ACL
                        '$emtitle'        => DI::l10n()->t('Example: bob@example.com, mary@example.com'),
                        '$jotnets_summary' => DI::l10n()->t('Connectors'),
                        '$visibility'     => $visibility,
-                       '$acl_contacts'   => $acl_contacts,
-                       '$acl_groups'     => $acl_groups,
-                       '$acl_list'       => $acl_list,
+                       '$acl_contacts'   => json_encode($acl_contacts),
+                       '$acl_groups'     => json_encode($acl_groups),
+                       '$acl_list'       => json_encode($acl_list),
                        '$contact_allow'  => implode(',', $default_permissions['allow_cid']),
                        '$group_allow'    => implode(',', $default_permissions['allow_gid']),
                        '$contact_deny'   => implode(',', $default_permissions['deny_cid']),