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:
@@ -129,12 +129,12 @@ class apActorLikedAction extends ManagedAction
|
||||
$limit = 40,
|
||||
$since_id = null,
|
||||
$max_id = null
|
||||
) {
|
||||
) {
|
||||
$fav = new Fave();
|
||||
|
||||
$fav->user_id = $user_id;
|
||||
|
||||
$fav->orderBy('modified DESC');
|
||||
$fav->orderBy('modified DESC, notice_id DESC');
|
||||
|
||||
if ($since_id != null) {
|
||||
$fav->whereAdd("notice_id > {$since_id}");
|
||||
|
Reference in New Issue
Block a user