]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
trac750 fixed dumb sql query that was pulling ancient notices
authorZach Copley <zach@controlyourself.ca>
Fri, 23 Jan 2009 12:12:51 +0000 (12:12 +0000)
committerZach Copley <zach@controlyourself.ca>
Fri, 23 Jan 2009 12:12:51 +0000 (12:12 +0000)
lib/facebookutil.php

index b4c73da87a82766c0b12a79caec88ed33bcd0d32..8454590d6c3c36c69e5cbec644e927bd90862304 100644 (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);