Fix problem with tags in different locales (Ticket #679)
darcs-hash:20080924092031-f6e2c-8def504406ee1a13273bb67faafe3a3327ae4a44.gz
This commit is contained in:
parent
0d4d0c7911
commit
411db90e25
@ -98,9 +98,9 @@ class TagAction extends StreamAction {
|
||||
#Add the aggregated columns...
|
||||
$tags->selectAdd('max(notice_id) as last_notice_id');
|
||||
if(common_config('db','type')=='pgsql') {
|
||||
$calc='sum(exp(-extract(epoch from (now()-created))/%f)) as weight';
|
||||
$calc='sum(exp(-extract(epoch from (now()-created))/%s)) as weight';
|
||||
} else {
|
||||
$calc='sum(exp(-(now() - created)/%f)) as weight';
|
||||
$calc='sum(exp(-(now() - created)/%s)) as weight';
|
||||
}
|
||||
$tags->selectAdd(sprintf($calc, common_config('tag', 'dropoff')));
|
||||
$tags->groupBy('tag');
|
||||
|
Loading…
Reference in New Issue
Block a user