mirror of
https://github.com/friendica/friendica
synced 2024-11-10 03:02:54 +00:00
Merge pull request #7503 from MrPetovan/bug/fix-private-permissions
Use contact.network field instead of contact.protocol in Group::expand
This commit is contained in:
commit
541cdcd515
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ class Group extends BaseObject
|
|||
$followers = Contact::selectToArray(['id'], [
|
||||
'uid' => $uid,
|
||||
'rel' => [Contact::FOLLOWER, Contact::FRIEND],
|
||||
'protocol' => Protocol::SUPPORT_PRIVATE,
|
||||
'network' => Protocol::SUPPORT_PRIVATE,
|
||||
]);
|
||||
|
||||
foreach ($followers as $follower) {
|
||||
|
@ -349,7 +349,7 @@ class Group extends BaseObject
|
|||
$mutuals = Contact::selectToArray(['id'], [
|
||||
'uid' => $uid,
|
||||
'rel' => [Contact::FRIEND],
|
||||
'protocol' => Protocol::SUPPORT_PRIVATE,
|
||||
'network' => Protocol::SUPPORT_PRIVATE,
|
||||
]);
|
||||
|
||||
foreach ($mutuals as $mutual) {
|
||||
|
|
Loading…
Reference in a new issue