]> git.mxchange.org Git - friendica.git/commitdiff
catch more places to apply default group
authorfriendica <info@friendica.com>
Fri, 18 May 2012 08:03:46 +0000 (01:03 -0700)
committerfriendica <info@friendica.com>
Fri, 18 May 2012 08:03:46 +0000 (01:03 -0700)
mod/dfrn_confirm.php

index 2b25095fde2209314ff65b7d71a8eb51fb108e00..227d72cbfb14d6cd0ea3ae97ad2c54b76ef9cc59 100644 (file)
@@ -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.