forked from GNUsocial/gnu-social
Don't override ORDER for inboxes; it messes up caching
This commit is contained in:
parent
3285e0979d
commit
af2fb7dff2
@ -385,8 +385,7 @@ class User extends Memcached_DataObject
|
|||||||
'SELECT notice.* ' .
|
'SELECT notice.* ' .
|
||||||
'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' .
|
'FROM notice JOIN notice_inbox ON notice.id = notice_inbox.notice_id ' .
|
||||||
'WHERE notice_inbox.user_id = %d ';
|
'WHERE notice_inbox.user_id = %d ';
|
||||||
# NOTE: we override ORDER
|
$order = null;
|
||||||
$order = 'ORDER BY notice_inbox.created DESC, notice_inbox.notice_id DESC ';
|
|
||||||
}
|
}
|
||||||
return Notice::getStream(sprintf($qry, $this->id),
|
return Notice::getStream(sprintf($qry, $this->id),
|
||||||
'user:notices_with_friends:' . $this->id,
|
'user:notices_with_friends:' . $this->id,
|
||||||
|
Loading…
Reference in New Issue
Block a user