sforkowany z mirror/friendica
Merge pull request #7503 from MrPetovan/bug/fix-private-permissions
Use contact.network field instead of contact.protocol in Group::expand2022.09-rc
commit
541cdcd515
|
@ -334,7 +334,7 @@ class Group extends BaseObject
|
||||||
$followers = Contact::selectToArray(['id'], [
|
$followers = Contact::selectToArray(['id'], [
|
||||||
'uid' => $uid,
|
'uid' => $uid,
|
||||||
'rel' => [Contact::FOLLOWER, Contact::FRIEND],
|
'rel' => [Contact::FOLLOWER, Contact::FRIEND],
|
||||||
'protocol' => Protocol::SUPPORT_PRIVATE,
|
'network' => Protocol::SUPPORT_PRIVATE,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
foreach ($followers as $follower) {
|
foreach ($followers as $follower) {
|
||||||
|
@ -349,7 +349,7 @@ class Group extends BaseObject
|
||||||
$mutuals = Contact::selectToArray(['id'], [
|
$mutuals = Contact::selectToArray(['id'], [
|
||||||
'uid' => $uid,
|
'uid' => $uid,
|
||||||
'rel' => [Contact::FRIEND],
|
'rel' => [Contact::FRIEND],
|
||||||
'protocol' => Protocol::SUPPORT_PRIVATE,
|
'network' => Protocol::SUPPORT_PRIVATE,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
foreach ($mutuals as $mutual) {
|
foreach ($mutuals as $mutual) {
|
||||||
|
|
Ładowanie…
Reference in New Issue