trac750 fixed dumb sql query that was pulling ancient notices

This commit is contained in:
Zach Copley 2009-01-23 12:12:51 +00:00
parent 767c7d293d
commit 44d1e723df
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ function getFacebookNotices($since)
'FROM notice ' .
'JOIN foreign_link ' .
'WHERE notice.profile_id = foreign_link.user_id ' .
'AND foreign_link.service = 2';
'AND foreign_link.service = 2 ' .
'ORDER BY notice.created DESC';
// XXX: What should the limit be?
return Notice::getStreamDirect($qry, 0, 100, 0, 0, null, $since);