gearheads
/
mastodon
Archived
2
0
Fork 0

Randomize emoji filename (#10090)

gh/stable
Hinaloe 2019-02-23 00:52:04 +09:00 committed by Eugen Rochko
parent 4532833498
commit d7ad42a888
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ module Admin
before_action :set_custom_emoji, except: [:index, :new, :create] before_action :set_custom_emoji, except: [:index, :new, :create]
before_action :set_filter_params before_action :set_filter_params
include ObfuscateFilename
obfuscate_filename [:custom_emoji, :image]
def index def index
authorize :custom_emoji, :index? authorize :custom_emoji, :index?
@custom_emojis = filtered_custom_emojis.eager_load(:local_counterpart).page(params[:page]) @custom_emojis = filtered_custom_emojis.eager_load(:local_counterpart).page(params[:page])