base_controller.rb 252 B

1234567891011
  1. # frozen_string_literal: true
  2. class ActivityPub::BaseController < Api::BaseController
  3. skip_before_action :require_authenticated_user!
  4. private
  5. def set_cache_headers
  6. response.headers['Vary'] = 'Signature' if authorized_fetch_mode?
  7. end
  8. end