Fix /actor needlessly reading session cookie and varying on Signature (#24664)

This commit is contained in:
Claire 2023-04-26 11:42:26 +02:00 committed by GitHub
parent dca2892276
commit 8c30221a41

View file

@ -1,10 +1,13 @@
# frozen_string_literal: true
class InstanceActorsController < ApplicationController
include AccountControllerConcern
class InstanceActorsController < ActivityPub::BaseController
vary_by ''
skip_before_action :check_account_confirmation
skip_around_action :set_locale
serialization_scope nil
before_action :set_account
skip_before_action :require_functional!
skip_before_action :update_user_sign_in
def show
expires_in 10.minutes, public: true