]> git.mxchange.org Git - friendica.git/commitdiff
Create a "potential default group" called "Friends" on registration.
authorfriendica <info@friendica.com>
Wed, 30 May 2012 11:20:01 +0000 (04:20 -0700)
committerfriendica <info@friendica.com>
Wed, 30 May 2012 11:20:01 +0000 (04:20 -0700)
mod/register.php

index 58bba85333dabce8f077129dc5eee62d21c64b32..aeeec7c1fa59c079170edbda7352084831e470d3 100644 (file)
@@ -290,6 +290,11 @@ function register_post(&$a) {
                        dbesc(datetime_convert())
                );
 
+               // Create a group with no members. This allows somebody to use it 
+               // right away as a default group for new contacts. 
+
+               require_once('include/group.php');
+               group_add($newuid, t('Friends'));
 
        }