commit: 8daf19ec0faac26569bf078b140fc4f7ad0d6b2b
parent 991807080bfb35caf32f2403d61dd6ced66a9a50
Author: Alex Gleason <alex@alexgleason.me>
Date: Mon, 12 Feb 2024 12:39:47 -0600
Fix notifications index
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex
@@ -88,7 +88,7 @@ defmodule Pleroma.Notification do
where: q.seen == true,
select: type(q.id, :string),
limit: 1,
- order_by: [desc: :id]
+ order_by: fragment("? desc nulls last", q.id)
)
end