summaryrefslogtreecommitdiff
path: root/lib/popularnoticesection.php
diff options
context:
space:
mode:
authorCiaranG <ciaran@ciarang.com>2009-03-05 14:35:50 +0000
committerCiaranG <ciaran@ciarang.com>2009-03-05 14:35:50 +0000
commit0c066db428843a6ca969c8523f0be2bcdfa278f7 (patch)
treea5e21f78bd4ac71995fb891cfb04b431dd5736be /lib/popularnoticesection.php
parent38b6946349d39359ce9f4b5ec37967a48e192862 (diff)
Undo my previous change that breaks the Popular Notices section on the public timeline under MySQL
Diffstat (limited to 'lib/popularnoticesection.php')
-rw-r--r--lib/popularnoticesection.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/popularnoticesection.php b/lib/popularnoticesection.php
index f7fb93554..cbf458c34 100644
--- a/lib/popularnoticesection.php
+++ b/lib/popularnoticesection.php
@@ -54,7 +54,7 @@ class PopularNoticeSection extends NoticeSection
$weightexpr='sum(exp(-(now() - fave.modified) / %s))';
}
- $qry = 'SELECT notice.id, '.
+ $qry = 'SELECT notice.*, '.
$weightexpr . ' as weight ' .
'FROM notice JOIN fave ON notice.id = fave.notice_id ' .
'GROUP BY notice.id ' .