api_zot: implement /api/z/1.0/network/stream and fix /api/z/1.0/channel/stream

This commit is contained in:
zotlabs
2016-12-04 17:06:52 -08:00
parent e1ffacbe32
commit df23ef36c7
3 changed files with 54 additions and 4 deletions

View File

@@ -3980,8 +3980,8 @@ function items_fetch($arr,$channel = null,$observer_hash = null,$client_mode = C
$sql_nets .= "( abook.abook_closeness >= " . intval($arr['cmin']) . " ";
$sql_nets .= " AND abook.abook_closeness <= " . intval($arr['cmax']) . " ) ";
/** @fixme dead code, $cmax is undefined */
if ($cmax == 99)
if ($arr['cmax'] == 99)
$sql_nets .= " OR abook.abook_closeness IS NULL ) ";
}
}