Merge branch 'main' into glitch-soc/merge-upstream

Conflicts:
- `app/views/admin/reports/show.html.haml`:
  Conflicts due to glitch-soc's theming system.
This commit is contained in:
Claire
2022-01-17 10:45:25 +01:00
59 changed files with 1219 additions and 598 deletions

View File

@ -233,8 +233,6 @@ Rails.application.routes.draw do
post :reopen
post :resolve
end
resources :reported_statuses, only: [:create]
end
resources :report_notes, only: [:create, :destroy]
@ -261,7 +259,13 @@ Rails.application.routes.draw do
resource :change_email, only: [:show, :update]
resource :reset, only: [:create]
resource :action, only: [:new, :create], controller: 'account_actions'
resources :statuses, only: [:index, :show, :create, :update, :destroy]
resources :statuses, only: [:index] do
collection do
post :batch
end
end
resources :relationships, only: [:index]
resource :confirmation, only: [:create] do
@ -518,7 +522,7 @@ Rails.application.routes.draw do
resource :action, only: [:create], controller: 'account_actions'
end
resources :reports, only: [:index, :show] do
resources :reports, only: [:index, :update, :show] do
member do
post :assign_to_self
post :unassign