From f7acc94bfedae6f23e0bc883541ca23132e95a06 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 17 Sep 2013 22:52:46 -0700 Subject: provide the back-end for a directory tag cloud --- mod/dirsearch.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'mod/dirsearch.php') diff --git a/mod/dirsearch.php b/mod/dirsearch.php index a285d9b8c..0a4d0ed2b 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -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); -- cgit v1.2.3