diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-07-02 22:00:15 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-07-02 22:00:15 -0700 |
commit | 90a31f4ad511e8d53ebbf70397227c1804bb8ad0 (patch) | |
tree | 46be4a0b63164b8407c26c81669cbad75c231824 /mod/follow.php | |
parent | 1a5898bf80246fca87ecd7a56f9b7e4780e4089c (diff) | |
parent | 065a50c920ebfe2274ab134bca7849051f3582e7 (diff) | |
download | volse-hubzilla-90a31f4ad511e8d53ebbf70397227c1804bb8ad0.tar.gz volse-hubzilla-90a31f4ad511e8d53ebbf70397227c1804bb8ad0.tar.bz2 volse-hubzilla-90a31f4ad511e8d53ebbf70397227c1804bb8ad0.zip |
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts:
include/zot.php
Diffstat (limited to 'mod/follow.php')
-rw-r--r-- | mod/follow.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/follow.php b/mod/follow.php index 79e2a4fa5..3ad2cb3bb 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -24,6 +24,19 @@ function follow_init(&$a) { info( t('Channel added.') . EOL); + $clone = array(); + foreach($result['abook'] as $k => $v) { + if(strpos($k,'abook_') === 0) { + $clone[$k] = $v; + } + } + unset($clone['abook_id']); + unset($clone['abook_account']); + unset($clone['abook_channel']); + + build_sync_packet(0 /* use the current local_channel */, array('abook' => array($clone))); + + // If we can view their stream, pull in some posts if(($result['abook']['abook_their_perms'] & PERMS_R_STREAM) || ($result['abook']['xchan_network'] === 'rss')) |