aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_request.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-17 22:44:52 -0700
committerfriendica <info@friendica.com>2012-05-17 22:44:52 -0700
commit7b0ded3f1478553e1fe93c95c272b99d78f0132b (patch)
tree2afc3fccae7d3f698ad89dc7c77386ac93890080 /mod/dfrn_request.php
parent7cfa7a7671f0bf8316bc63912452e156fc48129e (diff)
downloadvolse-hubzilla-7b0ded3f1478553e1fe93c95c272b99d78f0132b.tar.gz
volse-hubzilla-7b0ded3f1478553e1fe93c95c272b99d78f0132b.tar.bz2
volse-hubzilla-7b0ded3f1478553e1fe93c95c272b99d78f0132b.zip
more private forums, default privacy group for new contacts
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r--mod/dfrn_request.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 2169c494c..b809929d7 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -370,6 +370,14 @@ function dfrn_request_post(&$a) {
if(count($r)) {
$contact_id = $r[0]['id'];
+ $g = q("select def_gid from user where uid = %d limit 1",
+ intval($uid)
+ );
+ if($g && intval($g[0]['def_gid'])) {
+ require_once('include/group.php');
+ group_add_member($uid,'',$contact_id,$g[0]['def_gid']);
+ }
+
$photo = avatar_img($addr);
$r = q("UPDATE `contact` SET