forked from GNUsocial/gnu-social
Avoid ordering just by a timestamp
Try to also employ an id when possible. Involves reworking some of the indices.
This commit is contained in:
@@ -208,7 +208,7 @@ class DirectMessagePlugin extends Plugin
|
||||
|
||||
$message->selectAdd(); // clears it
|
||||
$message->selectAdd('id');
|
||||
$message->orderBy('created ASC');
|
||||
$message->orderBy('created, id');
|
||||
|
||||
if ($message->find()) {
|
||||
while ($message->fetch()) {
|
||||
|
Reference in New Issue
Block a user