From 5932bf931674344a2ea4295ec47dbad16b49e4c9 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 16 Apr 2025 16:21:16 +0200 Subject: [PATCH] This is rare enough that a redirect is fine --- app/controllers/notifications/readings_controller.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/notifications/readings_controller.rb b/app/controllers/notifications/readings_controller.rb index 9da4fb827..3c1c47c1a 100644 --- a/app/controllers/notifications/readings_controller.rb +++ b/app/controllers/notifications/readings_controller.rb @@ -6,9 +6,6 @@ class Notifications::ReadingsController < ApplicationController def create_all Current.user.notifications.unread.read_all - - set_page_and_extract_portion_from Current.user.notifications.read.ordered if request.format.turbo_stream? - - Turbo::StreamsChannel.broadcast_update_to [ Current.user, :notifications ], target: "notifications", html: "" + redirect_to notifications_path end end