Change /api/v2/instance to be enabled without authentication when limited federation mode is enabled (#34576)

This commit is contained in:
Claire 2025-05-09 09:46:57 +02:00 committed by GitHub
parent face71b7b2
commit 912268295c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# frozen_string_literal: true
class Api::V2::InstancesController < Api::BaseController
skip_before_action :require_authenticated_user!, unless: :limited_federation_mode?
skip_before_action :require_authenticated_user!
skip_around_action :set_locale
vary_by ''