make discover items interactive

This commit is contained in:
friendica
2014-09-22 21:37:19 -07:00
parent b735961560
commit fb05919d90
5 changed files with 30 additions and 11 deletions

View File

@@ -1230,11 +1230,19 @@ function add_children_to_list($children, &$arr) {
}
}
function conv_sort($arr,$order) {
function conv_sort($arr,$order,$uid = 0) {
if((!(is_array($arr) && count($arr))))
return array();
if($uid) {
for($x = 0; $x < count($arr); $x ++) {
$arr[$x]['real_uid'] = $arr[$x]['uid'];
$arr[$x]['uid'] = $uid;
}
}
$parents = array();
$children = array();