diff options
author | Evan Prodromou <evan@status.net> | 2010-01-04 10:55:21 -1000 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-01-04 10:55:21 -1000 |
commit | 6add2693b009a2122883f4f6c96c775be878e42c (patch) | |
tree | ea6f11e37e44f61216cf9d3f678d2d99a72fc30c /lib/grouptagcloudsection.php | |
parent | 96480aa6c1abda95db272f7c0a2b0e96f17acc70 (diff) | |
parent | f5b8177bc752c29228ee76bc95285cdbb8549748 (diff) |
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib/grouptagcloudsection.php')
-rw-r--r-- | lib/grouptagcloudsection.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/grouptagcloudsection.php b/lib/grouptagcloudsection.php index 091cf4845..14ceda085 100644 --- a/lib/grouptagcloudsection.php +++ b/lib/grouptagcloudsection.php @@ -58,11 +58,7 @@ class GroupTagCloudSection extends TagCloudSection function getTags() { - if (common_config('db', 'type') == 'pgsql') { - $weightexpr='sum(exp(-extract(epoch from (now() - notice_tag.created)) / %s))'; - } else { - $weightexpr='sum(exp(-(now() - notice_tag.created) / %s))'; - } + $weightexpr = common_sql_weight('notice_tag.created', common_config('tag', 'dropoff')); $names = $this->group->getAliases(); @@ -99,7 +95,6 @@ class GroupTagCloudSection extends TagCloudSection $tag = Memcached_DataObject::cachedQuery('Notice_tag', sprintf($qry, - common_config('tag', 'dropoff'), $this->group->id, $namestring), 3600); |