summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-11-12 12:25:17 -0500
committerEvan Prodromou <evan@controlyourself.ca>2008-11-12 12:25:17 -0500
commit3987de1064de54c945d311fa8b0eab144504891a (patch)
treed219a89b5a7d809f4d226d000bafb4c731b71e44 /classes/User.php
parent8deac7248e7db35515d7810491f9136deffa3098 (diff)
created timestamp on notice_inbox
darcs-hash:20081112172517-5ed1f-4e8534d7898e2134edf4c0a28417b4a5274617d4.gz
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php5
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() {