From e6e5ce3c5413b2fa85d87660bc443dfb1557576c Mon Sep 17 00:00:00 2001 From: Kris Date: Tue, 11 Feb 2020 15:52:38 -0500 Subject: [PATCH] FIX: Don't use theme colors for digest unsubscribe footer links --- app/helpers/user_notifications_helper.rb | 4 ++-- app/views/user_notifications/digest.html.erb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/helpers/user_notifications_helper.rb b/app/helpers/user_notifications_helper.rb index 0df7aa6926c..22385175f82 100644 --- a/app/helpers/user_notifications_helper.rb +++ b/app/helpers/user_notifications_helper.rb @@ -27,8 +27,8 @@ module UserNotificationsHelper logo_url end - def html_site_link(color) - "#{@site_name}" + def html_site_link + "#{@site_name}" end def first_paragraphs_from(html) diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index ed0a0e3edd0..7ce440ff460 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -405,9 +405,9 @@ <%=raw(t 'user_notifications.digest.unsubscribe', - site_link: html_site_link(@anchor_color), + site_link: html_site_link, email_preferences_link: link_to(t('user_notifications.digest.your_email_settings'), Discourse.base_url + '/my/preferences/emails'), - unsubscribe_link: link_to(t('user_notifications.digest.click_here'), "#{Discourse.base_url}/email/unsubscribe/#{@unsubscribe_key}", {:style=>"color: ##{@anchor_color}"})) %> + unsubscribe_link: link_to(t('user_notifications.digest.click_here'), "#{Discourse.base_url}/email/unsubscribe/#{@unsubscribe_key}")) %>