From: friendica <info@friendica.com>
Date: Wed, 30 May 2012 11:20:01 +0000 (-0700)
Subject: Create a "potential default group" called "Friends" on registration.
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7d77cfef56853fa5febb36b4cb4a1df8da7c3224;p=friendica.git

Create a "potential default group" called "Friends" on registration.
---

diff --git a/mod/register.php b/mod/register.php
index 58bba85333..aeeec7c1fa 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -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'));
 
 	}