summaryrefslogtreecommitdiff
path: root/lib/facebookutil.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-23 12:12:51 +0000
committerZach Copley <zach@controlyourself.ca>2009-01-23 12:12:51 +0000
commit44d1e723dfaeb1ad5980f8b0b1744cd2b58ea9ce (patch)
tree1eb3623a5530d5ee5c5f6c15482766ec5ffd1558 /lib/facebookutil.php
parent767c7d293d967a45481e31f09022c13d077eb037 (diff)
trac750 fixed dumb sql query that was pulling ancient notices
Diffstat (limited to 'lib/facebookutil.php')
-rw-r--r--lib/facebookutil.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/facebookutil.php b/lib/facebookutil.php
index b4c73da87..8454590d6 100644
--- a/lib/facebookutil.php
+++ b/lib/facebookutil.php
@@ -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);