FEATURE: new template parameters for notification emails that can be used in links: topic_title_url_encoded and site_title_url_encoded

This commit is contained in:
Neil Lalonde 2017-03-10 12:06:15 -05:00
parent bc1a6ccb90
commit 15adbdcdd5
1 changed files with 2 additions and 0 deletions

View File

@ -427,6 +427,7 @@ class UserNotifications < ActionMailer::Base
email_opts = {
topic_title: title,
topic_title_url_encoded: URI.encode(title),
message: message,
url: post.url,
post_id: post.id,
@ -447,6 +448,7 @@ class UserNotifications < ActionMailer::Base
html_override: html,
site_description: SiteSetting.site_description,
site_title: SiteSetting.title,
site_title_url_encoded: URI.encode(SiteSetting.title),
style: :notification,
locale: locale
}