aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_request.php
diff options
context:
space:
mode:
authorzottel <github@zottel.net>2012-05-20 09:08:56 +0200
committerzottel <github@zottel.net>2012-05-20 09:08:56 +0200
commit2cd3ec7b983327f8c162845d0f4b8d9753f30e27 (patch)
tree3eefeaf641e91416fa7b43b9a36b829f28ff1983 /mod/dfrn_request.php
parent764ac240a9a9ffb7c855a69bc2f81e9d314a617f (diff)
parentf16a1199408d167bbc7c52dc408ef02b36808317 (diff)
downloadvolse-hubzilla-2cd3ec7b983327f8c162845d0f4b8d9753f30e27.tar.gz
volse-hubzilla-2cd3ec7b983327f8c162845d0f4b8d9753f30e27.tar.bz2
volse-hubzilla-2cd3ec7b983327f8c162845d0f4b8d9753f30e27.zip
Merge remote branch 'upstream/master'
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