aboutsummaryrefslogtreecommitdiffstats
path: root/include/conversation.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-09-22 21:37:19 -0700
committerfriendica <info@friendica.com>2014-09-22 21:37:19 -0700
commitfb05919d90cac9bb360bbb62b7e89d5c0e59b484 (patch)
treea223ce505137d1ddbfa17132c46bf09e3ed511c1 /include/conversation.php
parentb735961560d676f46bc43679f169ec2b0134de69 (diff)
downloadvolse-hubzilla-fb05919d90cac9bb360bbb62b7e89d5c0e59b484.tar.gz
volse-hubzilla-fb05919d90cac9bb360bbb62b7e89d5c0e59b484.tar.bz2
volse-hubzilla-fb05919d90cac9bb360bbb62b7e89d5c0e59b484.zip
make discover items interactive
Diffstat (limited to 'include/conversation.php')
-rw-r--r--include/conversation.php10
1 files changed, 9 insertions, 1 deletions
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();