forked from GNUsocial/gnu-social
Sort notices by date then id so they are in the correct order when there are multiple in the same second
darcs-hash:20080713065009-533db-69d7f21d152552d7e994a0c7c7615b61a8ea592c.gz
This commit is contained in:
@@ -145,7 +145,7 @@ class Profile extends DB_DataObject
|
||||
if ($dt) {
|
||||
$notice->whereAdd('created < "' . $dt . '"');
|
||||
}
|
||||
$notice->orderBy('created DESC');
|
||||
$notice->orderBy('created DESC, notice.id DESC');
|
||||
$notice->limit(1);
|
||||
if ($notice->find(true)) {
|
||||
return $notice;
|
||||
|
Reference in New Issue
Block a user