FIX: include topic link when inviting existing users to a topic/PM

FEATURE: allow staff to use topic_url for customizing email template
This commit is contained in:
Arpit Jalan
2019-10-16 12:26:36 +05:30
parent d5d8db7fa8
commit 600233482f
2 changed files with 20 additions and 7 deletions

View File

@@ -566,7 +566,8 @@ class UserNotifications < ActionMailer::Base
topic_title: gsub_emoji_to_unicode(title),
topic_excerpt: topic_excerpt,
site_title: SiteSetting.title,
site_description: SiteSetting.site_description
site_description: SiteSetting.site_description,
topic_url: post.topic.url
)
html = PrettyText.cook(message, sanitize: false).html_safe