From fb05919d90cac9bb360bbb62b7e89d5c0e59b484 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 22 Sep 2014 21:37:19 -0700 Subject: make discover items interactive --- include/conversation.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/conversation.php') diff --git a/include/conversation.php b/include/conversation.php index b0a388a68..17792e09a 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -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(); -- cgit v1.2.3