aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-01-28 19:40:42 +0000
committerMario <mario@mariovavti.com>2022-01-28 19:40:42 +0000
commitb49f7b8b3441300c8dcd4f3f6fe51af7b31b8010 (patch)
treeef341ce525f8ad887a85f31bac71a7782b8857da
parentc4dd8885e43441e40d05f17bc8ef1726f15c478d (diff)
downloadvolse-hubzilla-b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010.tar.gz
volse-hubzilla-b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010.tar.bz2
volse-hubzilla-b49f7b8b3441300c8dcd4f3f6fe51af7b31b8010.zip
fix removing contacts from privacy groups
-rw-r--r--Zotlabs/Lib/AccessList.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Lib/AccessList.php b/Zotlabs/Lib/AccessList.php
index 03052fab5..026148c9f 100644
--- a/Zotlabs/Lib/AccessList.php
+++ b/Zotlabs/Lib/AccessList.php
@@ -160,8 +160,10 @@ class AccessList {
return false;
}
- static function member_remove($uid, $name, $member) {
- $gid = self::by_name($uid, $name);
+ static function member_remove($uid, $name, $member, $gid = 0) {
+ if (!$gid) {
+ $gid = self::by_name($uid, $name);
+ }
if (!($uid && $gid && $member)) {
return false;
@@ -192,7 +194,8 @@ class AccessList {
dbesc($member)
);
if ($r) {
- return true; // You might question this, but
+ return true;
+ // You might question this, but
// we indicate success because the group member was in fact created
// -- It was just created at another time
}