diff options
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/classes/User.php b/classes/User.php index bbc33f72a..370aad07b 100644 --- a/classes/User.php +++ b/classes/User.php @@ -330,9 +330,12 @@ class User extends Memcached_DataObject 'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' . 'WHERE notice_inbox.user_id = %d '; + # NOTE: we override ORDER + return Notice::getStream(sprintf($qry, $this->id), 'user:notices_with_friends:' . $this->id, - $offset, $limit, $since_id, $before_id); + $offset, $limit, $since_id, $before_id, + 'ORDER BY notice_inbox.created DESC, notice_inbox.id DESC '); } function blowFavesCache() { |