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 Gargron committed Feb 22, 2019
1 parent db9b705 commit 5b242a2
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 5b242a2

Please sign in to comment.