Set up proper response codes for Turbo Stream responses

This commit is contained in:
Andreas Nedbal 2022-09-08 00:55:10 +02:00 committed by Andreas Nedbal
parent 1ac6475fb2
commit 3074ce3bbe
3 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ class InboxController < ApplicationController
@disabled = true if @inbox.empty?
respond_to do |format|
format.html
format.turbo_stream
format.turbo_stream { render "show", layout: false, status: :see_other }
end
end
end

View file

@ -12,7 +12,7 @@ class Moderation::InboxController < ApplicationController
respond_to do |format|
format.html
format.turbo_stream
format.turbo_stream { render "index", layout: false, status: :see_other }
end
end
end

View file

@ -11,7 +11,7 @@ class Moderation::ReportsController < ApplicationController
respond_to do |format|
format.html
format.turbo_stream
format.turbo_stream { render "index", layout: false, status: :see_other }
end
end