aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/dirsearch.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php
index 69b7e2eac..5a0a7cee8 100644
--- a/mod/dirsearch.php
+++ b/mod/dirsearch.php
@@ -213,11 +213,12 @@ function dirsearch_content(&$a) {
dbesc($sync)
);
if($r) {
- $spkt['rating'] = array();
+ $spkt['ratings'] = array();
foreach($r as $rr) {
- $spkt['rating'][] = array(
+ $spkt['ratings'][] = array(
'type' => 'rating',
'encoding' => 'zot',
+ 'channel' => $rr['xlink_xchan'],
'target' => $rr['xlink_link'],
'rating' => intval($rr['xlink_rating']),
'rating_text' => $rr['xlink_rating_text'],