diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/dirsearch.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mod/dirsearch.php b/mod/dirsearch.php index 52a3d02cf..0f4dde976 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -210,6 +210,23 @@ function dirsearch_content(&$a) { ); } } + $r = q("select * from xlink where xlink_static = 1 and xlink_updated >= '%s' ", + dbesc($sync) + ); + if($r) { + $spkt['rating'] = array(); + foreach($r as $rr) { + $spkt['rating'][] = array( + 'type' => 'rating', + 'encoding' => 'zot', + 'target' => $rr['xlink_link'], + 'rating' => intval($rr['xlink_rating']), + 'rating_text' => $rr['xlink_rating_text'], + 'signature' => $rr['xlink_sig'], + 'edited' => $rr['xlink_updated'] + ); + } + } json_return_and_die($spkt); } else { |