summaryrefslogtreecommitdiff
path: root/actions/publictagcloud.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-04 11:56:07 -0800
committerBrion Vibber <brion@pobox.com>2010-02-04 11:56:07 -0800
commita020e230860358fc8b63cd56872bbad0446016e0 (patch)
treeca2788c034526d53424079004ba6a726485a1e25 /actions/publictagcloud.php
parent5bdc6fa5d456c3f520d8124950684220d8f440a3 (diff)
parent5a1cbdc6f1e32be7b8430924a1125422d8457584 (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'actions/publictagcloud.php')
-rw-r--r--actions/publictagcloud.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/actions/publictagcloud.php b/actions/publictagcloud.php
index 9e4478dbb..9993b2d3f 100644
--- a/actions/publictagcloud.php
+++ b/actions/publictagcloud.php
@@ -106,7 +106,10 @@ class PublictagcloudAction extends Action
#Add the aggregated columns...
$tags->selectAdd('max(notice_id) as last_notice_id');
$calc = common_sql_weight('created', common_config('tag', 'dropoff'));
+ $cutoff = sprintf("notice_tag.created > '%s'",
+ common_sql_date(time() - common_config('tag', 'cutoff')));
$tags->selectAdd($calc . ' as weight');
+ $tags->addWhere($cutoff);
$tags->groupBy('tag');
$tags->orderBy('weight DESC');