fix: check for limited_federation_mode instead of removed whitelist_mode

This commit is contained in:
Jeremy Kescher 2024-01-02 13:55:07 +01:00
parent 5be3fb3d66
commit b18cd3f4bd
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -2,7 +2,7 @@
class Api::V1::CustomEmojisController < Api::BaseController
vary_by '', unless: :disallow_unauthenticated_api_access?
skip_before_action :require_authenticated_user!, unless: :whitelist_mode?
skip_before_action :require_authenticated_user!, unless: :limited_federation_mode?
def index
cache_even_if_authenticated! unless disallow_unauthenticated_api_access?