provide the back-end for a directory tag cloud

This commit is contained in:
friendica
2013-09-17 22:52:46 -07:00
parent d3aa31be4d
commit f7acc94bfe
2 changed files with 69 additions and 1 deletions

View File

@@ -175,7 +175,15 @@ function dirsearch_content(&$a) {
}
$ret['results'] = $entries;
if(! $sync) {
$k = dir_tagadelic(24);
if($k) {
$ret['keywords'] = array();
foreach($k as $kv) {
$ret['keywords'][] = array('term' => $kv[0],'weight' => $kv[1]);
}
}
}
}
json_return_and_die($ret);