diff options
author | friendica <info@friendica.com> | 2013-11-17 19:22:24 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-17 19:22:24 -0800 |
commit | 13538cdd21c6e13a2ff108f1b42dbecaab8b375a (patch) | |
tree | b9d67c87b02bf7d5b823cbe2eb3d5a381e2cd3bd /mod/follow.php | |
parent | 772e3795bf1513b5f8ac3ab520c6c8cdb68de3af (diff) | |
download | volse-hubzilla-13538cdd21c6e13a2ff108f1b42dbecaab8b375a.tar.gz volse-hubzilla-13538cdd21c6e13a2ff108f1b42dbecaab8b375a.tar.bz2 volse-hubzilla-13538cdd21c6e13a2ff108f1b42dbecaab8b375a.zip |
pull in some posts when we first connect with a new channel (if allowed to) - if not allowed to, do it if that condition changes
Diffstat (limited to 'mod/follow.php')
-rw-r--r-- | mod/follow.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/follow.php b/mod/follow.php index 1d29dab2e..364fe76b9 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -24,6 +24,12 @@ function follow_init(&$a) { info( t('Channel added.') . EOL); + // If we can view their stream, pull in some posts + + if($result['abook']['abook_their_perms'] & PERMS_R_STREAM) + proc_run('php','include/onepoll.php',$result['abook']['abook_id']); + + goaway(z_root() . '/connections/' . $result['abook']['abook_id']); } |