From ba4230447ebc43d3ff89aab5105e6b0b5335c89a Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Mon, 28 Mar 2022 20:49:28 +0100 Subject: [PATCH] [COMPONENT][Group] Add orderBy to query, as otherwise the feed order is wrong --- components/Group/Controller/GroupFeed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/components/Group/Controller/GroupFeed.php b/components/Group/Controller/GroupFeed.php index 9e6a69ac43..7f7365a520 100644 --- a/components/Group/Controller/GroupFeed.php +++ b/components/Group/Controller/GroupFeed.php @@ -80,6 +80,7 @@ class GroupFeed extends FeedController WHERE act.object_type = 'note' AND act.id IN (SELECT att.activity_id FROM \Component\Notification\Entity\Notification AS att WHERE att.target_id = :id) ) + ORDER BY n.created DESC EOF, ['id' => $group->getId()]); return [