mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't tell staged users they can visit topics in email notifications
This commit is contained in:
@@ -327,6 +327,7 @@ class UserNotifications < ActionMailer::Base
|
||||
add_unsubscribe_via_email_link: user.user_option.mailing_list_mode,
|
||||
unsubscribe_url: post.topic.unsubscribe_url,
|
||||
allow_reply_by_email: allow_reply_by_email,
|
||||
only_reply_by_email: allow_reply_by_email && user.staged,
|
||||
use_site_subject: use_site_subject,
|
||||
add_re_to_subject: add_re_to_subject,
|
||||
show_category_in_subject: show_category_in_subject,
|
||||
@@ -336,7 +337,7 @@ class UserNotifications < ActionMailer::Base
|
||||
html_override: html,
|
||||
site_description: SiteSetting.site_description,
|
||||
site_title: SiteSetting.title,
|
||||
style: :notification
|
||||
style: :notification,
|
||||
}
|
||||
|
||||
# If we have a display name, change the from address
|
||||
|
||||
Reference in New Issue
Block a user