aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-25 08:03:12 +0000
committerMario <mario@mariovavti.com>2021-10-25 08:03:12 +0000
commit65acdd7b1587b0537cfe4084bbfd18436cc754b1 (patch)
tree88c7d66d1974ff4f8ed66d4cdfb99ebb90ae47f1 /include
parenta209374cbd04f10408c0b834eaab203e0c745902 (diff)
downloadvolse-hubzilla-65acdd7b1587b0537cfe4084bbfd18436cc754b1.tar.gz
volse-hubzilla-65acdd7b1587b0537cfe4084bbfd18436cc754b1.tar.bz2
volse-hubzilla-65acdd7b1587b0537cfe4084bbfd18436cc754b1.zip
mod regate: auto-connect the invitee with the inviter if auto channel create is enabled (default). fix issue where the default group was not set in the return array of create_identity()
Diffstat (limited to 'include')
-rw-r--r--include/channel.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index d438d0aa7..927da3dcd 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -470,6 +470,10 @@ function create_identity($arr) {
dbesc($default_collection_str),
intval($newuid)
);
+
+ // also update the current channel array, otherwise the auto-follow contacts will not be added to the default group
+ $ret['channel']['channel_default_group'] = dbesc($group_hash);
+ $ret['channel']['channel_allow_gid'] = dbesc($default_collection_str);
}
if(! $system) {