diff options
author | friendica <info@friendica.com> | 2012-05-18 01:03:46 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-18 01:03:46 -0700 |
commit | 5ecaeb8e5c9fb01ee768df2a650d2187d971b105 (patch) | |
tree | 150570c477aea9f9cb78f7eb6efc64d5e6793f96 | |
parent | 1d157fc747232a158209367e2ebaeadc3f3a56ec (diff) | |
download | volse-hubzilla-5ecaeb8e5c9fb01ee768df2a650d2187d971b105.tar.gz volse-hubzilla-5ecaeb8e5c9fb01ee768df2a650d2187d971b105.tar.bz2 volse-hubzilla-5ecaeb8e5c9fb01ee768df2a650d2187d971b105.zip |
catch more places to apply default group
-rw-r--r-- | mod/dfrn_confirm.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/dfrn_confirm.php b/mod/dfrn_confirm.php index 2b25095fd..227d72cbf 100644 --- a/mod/dfrn_confirm.php +++ b/mod/dfrn_confirm.php @@ -500,6 +500,16 @@ function dfrn_confirm_post(&$a,$handsfree = null) { } } } + + + $g = q("select def_gid from user where uid = %d limit 1", + intval($uid) + ); + if($contact && $g && intval($g[0]['def_gid'])) { + require_once('include/group.php'); + group_add_member($uid,'',$contact[0]['id'],$g[0]['def_gid']); + } + // Let's send our user to the contact editor in case they want to // do anything special with this new friend. |