]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't override ORDER for inboxes; it messes up caching
authorEvan Prodromou <evan@zhora.(none)>
Tue, 20 Jan 2009 03:51:03 +0000 (22:51 -0500)
committerEvan Prodromou <evan@zhora.(none)>
Tue, 20 Jan 2009 03:51:03 +0000 (22:51 -0500)
classes/User.php

index 32d5bedde1b72b6430637c1311aa6c1d84aa485d..5dab5c7017c7398b81f10950f2e7fb33c3acea3f 100644 (file)
@@ -385,8 +385,7 @@ class User extends Memcached_DataObject
                          'SELECT notice.* ' .
                          'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' .
                          'WHERE notice_inbox.user_id = %d ';
-                       # NOTE: we override ORDER
-                       $order = 'ORDER BY notice_inbox.created DESC, notice_inbox.notice_id DESC ';
+                       $order = null;
                }
                return Notice::getStream(sprintf($qry, $this->id),
                                                                 'user:notices_with_friends:' . $this->id,