From e060135304a337cf4a627b1f1e0dc7131f987362 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 9 Apr 2018 23:39:47 -0700 Subject: add commented_days parameter to item_expire(), default 7. Both expire_days and commented_days have to be exceeded to expire. --- Zotlabs/Widget/Tagcloud.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'Zotlabs/Widget/Tagcloud.php') diff --git a/Zotlabs/Widget/Tagcloud.php b/Zotlabs/Widget/Tagcloud.php index cf7a4932e..f79bd59ad 100644 --- a/Zotlabs/Widget/Tagcloud.php +++ b/Zotlabs/Widget/Tagcloud.php @@ -2,9 +2,6 @@ namespace Zotlabs\Widget; -// @FIXME The problem with this widget is that we don't have a search function for webpages -// that we can send the links to. Then we should also provide an option to search webpages -// and conversations. class Tagcloud { @@ -14,15 +11,15 @@ class Tagcloud { $uid = \App::$profile_uid; $count = ((x($args,'count')) ? intval($args['count']) : 24); $flags = 0; - $type = TERM_CATEGORY; + $type = TERM_HASHTAG; // @FIXME there exists no $authors variable - $r = tagadelic($uid, $count, $authors, $owner, $flags, ITEM_TYPE_WEBPAGE, $type); + $r = tagadelic($uid, $count, $authors, $owner, $flags, 0, $type); // @FIXME this should use a template if($r) { - $o = '

' . t('Categories') . '

'; + $o = '

' . t('Tags') . '

'; foreach($r as $rv) { $o .= '' . $rv[0] .' ' . "\r\n"; } -- cgit v1.2.3