Skip to content

Commit

Permalink
Randomize emoji filename (mastodon#10090)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinaloe authored and hiyuki2578 committed Oct 2, 2019
1 parent 83122c9 commit f33dfb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/admin/custom_emojis_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit f33dfb1

Please sign in to comment.