FIX: don't try to show svg's in summary email

This commit is contained in:
Neil Lalonde
2016-11-28 14:35:59 -05:00
parent d9cf9e2fb1
commit 4e0958051e
2 changed files with 5 additions and 1 deletions

View File

@ -93,6 +93,10 @@ module UserNotificationsHelper
PrettyText.format_for_email(I18n.t(i18n_key)).html_safe
end
def show_image_with_url(url)
!(url.nil? || url.downcase.end_with?('svg'))
end
def email_image_url(basename)
UrlHelper.absolute("#{Discourse.base_uri}/images/emails/#{basename}")
end