This is rare enough that a redirect is fine

This commit is contained in:
David Heinemeier Hansson
2025-04-16 16:21:16 +02:00
parent f9952e0fd6
commit 5932bf9316
@@ -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