X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Ftag.php;h=1042513d5a1a42faee8b5ddf5e54736e3e583e6e;hb=35d17146213228445b0f30548aca01c9e1a71154;hp=3f379ffdf2a6374d00f631698af37a14192b2fe6;hpb=4bd68f89c39f82d2e11f689e57accb1a0673bc55;p=quix0rs-gnu-social.git diff --git a/actions/tag.php b/actions/tag.php index 3f379ffdf2..1042513d5a 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');