Change /api/v2/instance
to be enabled without authentication when limited federation mode is enabled (#34576)
This commit is contained in:
parent
face71b7b2
commit
912268295c
2 changed files with 8 additions and 2 deletions
|
@ -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 ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue