summaryrefslogtreecommitdiff
path: root/actions/tag.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-11 13:58:20 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-11 13:58:20 -0400
commit37c5e8ca3c2d77fc3e1836fd76d7462e33f1668e (patch)
treec5b249bdab52e9efd8e1a37c09aeb0772d732982 /actions/tag.php
parent12aba8ba32119aa9d98304db0ee220b6f5de1dd0 (diff)
make tag dropoff configurable
darcs-hash:20080811175820-84dde-f3d934495fa90fadde5f7d5d0c37c5f2a575a9d8.gz
Diffstat (limited to 'actions/tag.php')
-rw-r--r--actions/tag.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/actions/tag.php b/actions/tag.php
index 3f379ffdf..1042513d5 100644
--- a/actions/tag.php
+++ b/actions/tag.php
@@ -21,7 +21,6 @@ if (!defined('LACONICA')) { exit(1); }
require_once(INSTALLDIR.'/actions/showstream.php');
define('TAGS_PER_PAGE', 100);
-define('AGE_FACTOR', 864000.0);
class TagAction extends StreamAction {
@@ -90,7 +89,7 @@ class TagAction extends StreamAction {
# This should probably be cached rather than recalculated
$tags = DB_DataObject::factory('Notice_tag');
$tags->selectAdd('max(notice_id) as last_notice_id');
- $tags->selectAdd(sprintf('sum(exp(-(now() - created)/%f)) as weight', AGE_FACTOR));
+ $tags->selectAdd(sprintf('sum(exp(-(now() - created)/%f)) as weight', common_config('tag', 'dropoff')));
$tags->groupBy('tag');
$tags->orderBy('weight DESC');