From 289487a38362aa9a905729c8cb9ad0cbe7a1669c Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Mon, 14 Apr 2025 09:23:57 -0500 Subject: [PATCH] Source order seems to be significant Regressed in d3c5c86b217009e31d33cf531445fb4c4343cab8 --- app/controllers/notifications_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/notifications_controller.rb b/app/controllers/notifications_controller.rb index 6cb5e5985..403828c2b 100644 --- a/app/controllers/notifications_controller.rb +++ b/app/controllers/notifications_controller.rb @@ -1,10 +1,10 @@ class NotificationsController < ApplicationController def index + set_page_and_extract_portion_from Current.user.notifications.read.ordered + if @page.first? @unread = Current.user.notifications.unread.ordered end - - set_page_and_extract_portion_from Current.user.notifications.read.ordered end def mark_read