From 8daf19ec0faac26569bf078b140fc4f7ad0d6b2b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 12 Feb 2024 12:39:47 -0600 Subject: [PATCH 1/2] 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 48d467c59..368e609d2 100644 --- 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 From cb4d3db8c69104960f18be740cb7253add8c00e4 Mon Sep 17 00:00:00 2001 From: Mark Felder Date: Mon, 12 Feb 2024 14:14:38 -0500 Subject: [PATCH 2/2] Changelog for notifications fix pulled in from Rebased --- changelog.d/.search_config.fix.swp | Bin 0 -> 12288 bytes changelog.d/notifications-index.fix | 1 + 2 files changed, 1 insertion(+) create mode 100644 changelog.d/.search_config.fix.swp create mode 100644 changelog.d/notifications-index.fix diff --git a/changelog.d/.search_config.fix.swp b/changelog.d/.search_config.fix.swp new file mode 100644 index 0000000000000000000000000000000000000000..e310fa87e26a0ad016283c2dc8e69c6ae7819dcd GIT binary patch literal 12288 zcmeI%Jx;?g7=U4?I|7vp1Uh4vGO;3-4w1Tq6}gF%T21Z9$B~HcALUeZ>8dY&)5oU}g{ksG`@cHTVcpy%PYY>fzeaA%(dlpf zpek*vY7-jobfxOb1i#TLTWMFC%9k=%jnN@ny=LAOwv>h49^H&i1Q0k;;39pP-S4jY z?B8jsOA(Ab