no xchan here if using zot protocol

This commit is contained in:
redmatrix
2016-03-17 12:15:28 -07:00
parent a83cdbeb39
commit f82afca84d
3 changed files with 5 additions and 3 deletions

View File

@@ -175,7 +175,7 @@ function new_contact($uid,$url,$channel,$interactive = false, $confirm = false)
return $result;
}
$allowed = (($r[0]['xchan_network'] === 'zot' || $r[0]['xchan_network'] === 'rss') ? 1 : 0);
$allowed = (($is_red || $r[0]['xchan_network'] === 'rss') ? 1 : 0);
$x = array('channel_id' => $uid, 'follow_address' => $url, 'xchan' => $r[0], 'allowed' => $allowed, 'singleton' => 0);