don't add pending connections to the default privacy group until accepted
This commit is contained in:
parent
1d3d713c1c
commit
46a4208b3d
@ -587,7 +587,9 @@ function zot_refresh($them, $channel = null, $force = false) {
|
||||
|
||||
|
||||
// If there is a default group for this channel, add this connection to it
|
||||
// for pending connections this will happens at acceptance time.
|
||||
|
||||
if(! intval($new_connection[0]['abook_pending'])) {
|
||||
$default_group = $channel['channel_default_group'];
|
||||
if($default_group) {
|
||||
require_once('include/group.php');
|
||||
@ -595,6 +597,7 @@ function zot_refresh($them, $channel = null, $force = false) {
|
||||
if($g)
|
||||
group_add_member($channel['channel_id'],'',$x['hash'],$g['id']);
|
||||
}
|
||||
}
|
||||
|
||||
unset($new_connection[0]['abook_id']);
|
||||
unset($new_connection[0]['abook_account']);
|
||||
|
Reference in New Issue
Block a user