Fix locale not being set in REST API (#17847)

lolsob-rspec
Eugen Rochko 2022-03-22 12:29:04 +01:00 committed by GitHub
parent eabcc9f888
commit 41816c8bfa
2 changed files with 1 additions and 2 deletions

View File

@ -2,6 +2,7 @@
class ActivityPub::BaseController < Api::BaseController
skip_before_action :require_authenticated_user!
skip_around_action :set_locale
private

View File

@ -15,8 +15,6 @@ class Api::BaseController < ApplicationController
protect_from_forgery with: :null_session
skip_around_action :set_locale
rescue_from ActiveRecord::RecordInvalid, Mastodon::ValidationError do |e|
render json: { error: e.to_s }, status: 422
end