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:
@@ -411,6 +411,7 @@ class FavoriteModule extends ActivityVerbHandlerModule
|
||||
if (!empty($uas->after)) {
|
||||
$fave->whereAdd("modified > '" . common_sql_date($uas->after) . "'");
|
||||
}
|
||||
$fave->orderBy('modified DESC, notice_id DESC');
|
||||
|
||||
if ($fave->find()) {
|
||||
while ($fave->fetch()) {
|
||||
|
Reference in New Issue
Block a user