From b46c19c36a27e7af0300b646fddd705e5e879f5b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 12 Feb 2024 12:39:47 -0600 Subject: [PATCH] Fix notifications index --- lib/pleroma/notification.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/notification.ex b/lib/pleroma/notification.ex index ba2417ad08..2833570979 100644 --- a/lib/pleroma/notification.ex +++ b/lib/pleroma/notification.ex @@ -93,7 +93,7 @@ def last_read_query(user) 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