forked from GNUsocial/gnu-social
Fix typo in public tag cloud query setup which caused the cutoff to get skipped.
This commit is contained in:
parent
5c314c2288
commit
8a221228eb
@ -109,7 +109,7 @@ class PublictagcloudAction extends Action
|
|||||||
$cutoff = sprintf("notice_tag.created > '%s'",
|
$cutoff = sprintf("notice_tag.created > '%s'",
|
||||||
common_sql_date(time() - common_config('tag', 'cutoff')));
|
common_sql_date(time() - common_config('tag', 'cutoff')));
|
||||||
$tags->selectAdd($calc . ' as weight');
|
$tags->selectAdd($calc . ' as weight');
|
||||||
$tags->addWhere($cutoff);
|
$tags->whereAdd($cutoff);
|
||||||
$tags->groupBy('tag');
|
$tags->groupBy('tag');
|
||||||
$tags->orderBy('weight DESC');
|
$tags->orderBy('weight DESC');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user