mirror of https://github.com/tootsuite/mastodon
parent
4bb3e4eeba
commit
61d3ecc805
|
@ -28,8 +28,7 @@ module Admin
|
||||||
end
|
end
|
||||||
|
|
||||||
def copy
|
def copy
|
||||||
emoji = @custom_emoji.dup
|
emoji = CustomEmoji.new(domain: nil, shortcode: @custom_emoji.shortcode, image: @custom_emoji.image)
|
||||||
emoji.domain = nil
|
|
||||||
|
|
||||||
if emoji.save
|
if emoji.save
|
||||||
redirect_to admin_custom_emojis_path, notice: I18n.t('admin.custom_emojis.copied_msg')
|
redirect_to admin_custom_emojis_path, notice: I18n.t('admin.custom_emojis.copied_msg')
|
||||||
|
|
Loading…
Reference in New Issue