mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix 422 being returned instead of 404 when POSTing (#11574)
This commit is contained in:
parent
b7f5f0ec10
commit
6e872c6dab
@ -29,6 +29,8 @@ class ApplicationController < ActionController::Base
|
||||
before_action :store_current_location, except: :raise_not_found, unless: :devise_controller?
|
||||
before_action :require_functional!, if: :user_signed_in?
|
||||
|
||||
skip_before_action :verify_authenticity_token, only: :raise_not_found
|
||||
|
||||
def raise_not_found
|
||||
raise ActionController::RoutingError, "No route matches #{params[:unmatched_route]}"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user