aboutsummaryrefslogtreecommitdiffstats
path: root/include/follow.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-16 18:00:13 -0700
committerredmatrix <git@macgirvin.com>2016-03-16 18:00:13 -0700
commit38eb79705e4de252f29e56543de8a287132b488e (patch)
tree4f9a638d10820d820166778c851cf63c984fb4b3 /include/follow.php
parent4188419b30ca1ceba597ad336f751f1b01d161a3 (diff)
downloadvolse-hubzilla-38eb79705e4de252f29e56543de8a287132b488e.tar.gz
volse-hubzilla-38eb79705e4de252f29e56543de8a287132b488e.tar.bz2
volse-hubzilla-38eb79705e4de252f29e56543de8a287132b488e.zip
lots of work on federated channel discovery
Diffstat (limited to 'include/follow.php')
-rw-r--r--include/follow.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/follow.php b/include/follow.php
index 5e1146657..319e9e41b 100644
--- a/include/follow.php
+++ b/include/follow.php
@@ -175,7 +175,9 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
return $result;
}
- $x = array('channel_id' => $uid, 'follow_address' => $url, 'xchan' => $r[0], 'allowed' => 1, 'singleton' => 0);
+ $allowed = ($r[0]['xchan_network'] === 'zot' || $r[0]['xchan_network'] === 'rss') ? 1 : 0);
+
+ $x = array('channel_id' => $uid, 'follow_address' => $url, 'xchan' => $r[0], 'allowed' => $allowed, 'singleton' => 0);
call_hooks('follow_allow',$x);