[COMPONENT][Group] Add orderBy to query, as otherwise the feed order is wrong

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-28 20:49:28 +01:00
parent 7463044971
commit ba4230447e
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

@ -80,6 +80,7 @@ class GroupFeed extends FeedController
WHERE act.object_type = 'note' AND act.id IN 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) (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()]); EOF, ['id' => $group->getId()]);
return [ return [