Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/emoji.rb')
-rw-r--r--lib/gitlab/emoji.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/gitlab/emoji.rb b/lib/gitlab/emoji.rb
index 3c5d223b106..f539d627dcb 100644
--- a/lib/gitlab/emoji.rb
+++ b/lib/gitlab/emoji.rb
@@ -46,12 +46,13 @@ module Gitlab
def custom_emoji_tag(name, image_source)
data = {
- name: name
+ name: name,
+ fallback_src: image_source,
+ unicode_version: 'custom' # Prevents frontend to check for Unicode support
}
+ options = { title: name, data: data }
- ActionController::Base.helpers.content_tag('gl-emoji', title: name, data: data) do
- emoji_image_tag(name, image_source).html_safe
- end
+ ActionController::Base.helpers.content_tag('gl-emoji', "", options)
end
end
end