aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dirsearch.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-17 22:52:46 -0700
committerfriendica <info@friendica.com>2013-09-17 22:52:46 -0700
commitf7acc94bfedae6f23e0bc883541ca23132e95a06 (patch)
tree856b4828ff44ece7cb04a5881b57b269a06a86b8 /mod/dirsearch.php
parentd3aa31be4d84764e4d119343d8bc5eba5a84272b (diff)
downloadvolse-hubzilla-f7acc94bfedae6f23e0bc883541ca23132e95a06.tar.gz
volse-hubzilla-f7acc94bfedae6f23e0bc883541ca23132e95a06.tar.bz2
volse-hubzilla-f7acc94bfedae6f23e0bc883541ca23132e95a06.zip
provide the back-end for a directory tag cloud
Diffstat (limited to 'mod/dirsearch.php')
-rw-r--r--mod/dirsearch.php10
1 files changed, 9 insertions, 1 deletions
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);