aboutsummaryrefslogtreecommitdiffstats
path: root/mod/follow.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/follow.php')
-rw-r--r--mod/follow.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/mod/follow.php b/mod/follow.php
index 9f5a8183b..962bb71a7 100644
--- a/mod/follow.php
+++ b/mod/follow.php
@@ -15,7 +15,7 @@ function follow_init(&$a) {
$confirm = intval($_REQUEST['confirm']);
$result = new_contact($uid,$url,$a->get_channel(),true,$confirm);
-
+
if($result['success'] == false) {
if($result['message'])
notice($result['message']);
@@ -24,7 +24,13 @@ function follow_init(&$a) {
info( t('Channel added.') . EOL);
- goaway(z_root() . '/connections/' . $result['abook']['abook_id']);
+ // 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() . '/connedit/' . $result['abook']['abook_id']);
}