]> git.mxchange.org Git - friendica.git/commitdiff
Switch available contact selection to private-supporting networks in ACL
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 16 Oct 2021 20:00:41 +0000 (16:00 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 16 Oct 2021 20:00:41 +0000 (16:00 -0400)
src/Core/ACL.php

index 9453dc65907fc402fc9483f6079cc50df38eb58d..347e8278f9eca5d3d1b2ab762e756fb382a9660c 100644 (file)
@@ -62,8 +62,6 @@ class ACL
                $page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput.css'));
                $page->registerStylesheet(Theme::getPathForFile('js/friendica-tagsinput/friendica-tagsinput-typeahead.css'));
 
-               // When used for private messages, we limit correspondence to mutual DFRN/Friendica friends and the selector
-               // to one recipient. By default our selector allows multiple selects amongst all contacts.
                $condition = [
                        'uid' => local_user(),
                        'self' => false,
@@ -72,7 +70,7 @@ class ACL
                        'archive' => false,
                        'deleted' => false,
                        'rel' => [Contact::FOLLOWER, Contact::SHARING, Contact::FRIEND],
-                       'network' => Protocol::FEDERATED,
+                       'network' => Protocol::SUPPORT_PRIVATE,
                ];
 
                $contacts = Contact::selectToArray(