From 73e345fe8f81fca5c7fbfcbeda3ca08627e06612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 15 Oct 2015 09:59:29 +0200 Subject: [PATCH] FIX: unescape emojis in digests --- app/helpers/application_helper.rb | 4 ++++ app/views/user_notifications/digest.html.erb | 4 ++-- lib/pretty_text.rb | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 07431083543..aa56543de5e 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -74,6 +74,10 @@ module ApplicationHelper end end + def unescape_emoji(title) + PrettyText.unescape_emoji(title) + end + def with_format(format, &block) old_formats = formats self.formats = [format] diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 61862b0613b..959562b2ea4 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -20,7 +20,7 @@ <%- @featured_topics.each_with_index do |t, i| %> @@ -43,7 +43,7 @@ <%- @new_topics.each do |t| %>