moderation/inbox: only provide #index as GET
This commit is contained in:
parent
59d94d7ba0
commit
144db471d6
|
@ -10,5 +10,8 @@
|
|||
|
||||
- if @more_data_available
|
||||
.d-flex.justify-content-center#paginator
|
||||
= button_to mod_inbox_index_path(@user, last_id: @inbox_last_id), class: "btn btn-light" do
|
||||
= t("voc.load")
|
||||
= button_to t("voc.load"), mod_inbox_index_path(@user),
|
||||
class: "btn btn-light",
|
||||
method: :get,
|
||||
params: { last_id: @inbox_last_id },
|
||||
form: { data: { turbo_stream: true } }
|
||||
|
|
|
@ -4,5 +4,8 @@
|
|||
|
||||
= turbo_stream.update "paginator" do
|
||||
- if @more_data_available
|
||||
= button_to mod_inbox_index_path(@user, last_id: @inbox_last_id), class: "btn btn-light" do
|
||||
= t("voc.load")
|
||||
= button_to t("voc.load"), mod_inbox_index_path(@user),
|
||||
class: "btn btn-light",
|
||||
method: :get,
|
||||
params: { last_id: @inbox_last_id },
|
||||
form: { data: { turbo_stream: true } }
|
||||
|
|
|
@ -25,7 +25,7 @@ Rails.application.routes.draw do
|
|||
authenticate :user, ->(user) { user.mod? } do
|
||||
post "/moderation/unmask", to: "moderation#toggle_unmask", as: :moderation_toggle_unmask
|
||||
get "/moderation/blocks", to: "moderation/anonymous_block#index", as: :mod_anon_block_index
|
||||
match "/moderation/inbox/:user", to: "moderation/inbox#index", via: [:get, :post], as: :mod_inbox_index
|
||||
get "/moderation/inbox/:user", to: "moderation/inbox#index", as: :mod_inbox_index
|
||||
match "/moderation/reports(/:type)", to: "moderation/reports#index", via: [:get, :post], as: :moderation_reports, defaults: { type: "all" }
|
||||
get "/moderation/questions/:author_identifier", to: "moderation/questions#show", as: :moderation_questions
|
||||
namespace :ajax do
|
||||
|
|
Loading…
Reference in New Issue