Fix ActivityPub and REST API queries setting cookies and preventing caching (#11539)
Regression from #8657
This commit is contained in:
parent
aebefc7ce9
commit
646f96d448
3 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,8 @@ 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue