From 5b242a2bc000229ff213642121d32df8de3949f1 Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sat, 23 Feb 2019 00:52:04 +0900 Subject: [PATCH] Randomize emoji filename (#10090) --- app/controllers/admin/custom_emojis_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/admin/custom_emojis_controller.rb b/app/controllers/admin/custom_emojis_controller.rb index d61bafdf02d7d9..f77699166769fd 100644 --- a/app/controllers/admin/custom_emojis_controller.rb +++ b/app/controllers/admin/custom_emojis_controller.rb @@ -5,6 +5,9 @@ class CustomEmojisController < BaseController before_action :set_custom_emoji, except: [:index, :new, :create] before_action :set_filter_params + include ObfuscateFilename + obfuscate_filename [:custom_emoji, :image] + def index authorize :custom_emoji, :index? @custom_emojis = filtered_custom_emojis.eager_load(:local_counterpart).page(params[:page])