Add attributes for sanitize on unsubscribe link section

In the comments and direct message emails, the "attributes" was
missing and in the reply email it was not in the right place.
This commit is contained in:
taitus
2022-05-04 16:06:00 +02:00
parent 41b9705563
commit d0224d1903
4 changed files with 5 additions and 4 deletions

View File

@@ -25,6 +25,6 @@
style: "color: #2895F1; text-decoration: none;"
),
notification: User.human_attribute_name(:email_on_comment)
)) %>
), attributes: %w[href style]) %>
</p>
</td>

View File

@@ -25,6 +25,7 @@
<%= sanitize(t("mailers.direct_message_for_receiver.unsubscribe_text",
notifications: link_to(t("mailers.config.notifications_link"),
edit_subscriptions_url(token: @token),
style: "color: #2895F1; text-decoration: none;"))) %>
style: "color: #2895F1; text-decoration: none;")),
attributes: %w[href style]) %>
</p>
</td>

View File

@@ -11,6 +11,6 @@
style: "color: #2895F1; text-decoration: none;"
),
notification: User.human_attribute_name(:newsletter)
)) %>
), attributes: %w[href style]) %>
</p>
</td>

View File

@@ -25,6 +25,6 @@
style: "color: #2895F1; text-decoration: none;"
),
notification: User.human_attribute_name(:email_on_comment_reply)
)) %>
), attributes: %w[href style]) %>
</p>
</td>