diff --git a/components/Feed/Feed.php b/components/Feed/Feed.php index bb8a6bf6b9..d71dd0d8ba 100644 --- a/components/Feed/Feed.php +++ b/components/Feed/Feed.php @@ -51,8 +51,8 @@ class Feed extends Component } $note_qb = DB::createQueryBuilder(); $actor_qb = DB::createQueryBuilder(); - $note_qb->select('note')->from('App\Entity\Note', 'note')->orderBy('note.created', 'DESC')->orderBy('note.id', 'DESC'); - $actor_qb->select('actor')->from('App\Entity\Actor', 'actor')->orderBy('actor.created', 'DESC')->orderBy('actor.id', 'DESC'); + $note_qb->select('note')->from('App\Entity\Note', 'note')->orderBy('note.created', 'DESC')->addOrderBy('note.id', 'DESC'); + $actor_qb->select('actor')->from('App\Entity\Actor', 'actor')->orderBy('actor.created', 'DESC')->addOrderBy('actor.id', 'DESC'); Event::handle('SearchQueryAddJoins', [&$note_qb, &$actor_qb, $note_criteria, $actor_criteria]); $notes = [];