different email footer when mailing_list_mode is enabled

This commit is contained in:
Régis Hanol
2016-06-03 15:48:54 +02:00
parent edd80e0298
commit 99ad251731
6 changed files with 73 additions and 57 deletions

View File

@@ -381,7 +381,7 @@ class UserNotifications < ActionMailer::Base
context: context,
username: username,
add_unsubscribe_link: !user.staged,
add_unsubscribe_via_email_link: user.user_option.mailing_list_mode,
mailing_list_mode: 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,