diff options
author | friendica <info@friendica.com> | 2012-05-17 22:44:52 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-17 22:44:52 -0700 |
commit | 7b0ded3f1478553e1fe93c95c272b99d78f0132b (patch) | |
tree | 2afc3fccae7d3f698ad89dc7c77386ac93890080 /mod/follow.php | |
parent | 7cfa7a7671f0bf8316bc63912452e156fc48129e (diff) | |
download | volse-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/follow.php')
-rw-r--r-- | mod/follow.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/follow.php b/mod/follow.php index 4a7f99bf0..cdecd5f2a 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -109,6 +109,7 @@ function follow_init(&$a) { dbesc($ret['poll']) ); + if(count($r)) { // update contact if($r[0]['rel'] == CONTACT_IS_FOLLOWER || ($network === NETWORK_DIASPORA && $r[0]['rel'] == CONTACT_IS_SHARING)) { @@ -165,6 +166,15 @@ function follow_init(&$a) { $contact = $r[0]; $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']); + } + require_once("Photo.php"); $photos = import_profile_photo($ret['photo'],$uid,$contact_id); |