Skip to content
Snippets Groups Projects
Unverified Commit 67d55083 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent 410989e0
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
class ActivityPub::BaseController < Api::BaseController
skip_before_action :require_authenticated_user!
skip_around_action :set_locale
private
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment