mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 08:23:41 +01:00
fix: check for limited_federation_mode instead of removed whitelist_mode
This commit is contained in:
parent
5be3fb3d66
commit
b18cd3f4bd
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue