mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Remove duplicate add_unsubscribe_link hash key (#13467)
This double key was introduced in
f0c10edd28
This commit is contained in:
@@ -692,7 +692,7 @@ class UserNotifications < ActionMailer::Base
|
|||||||
context: context,
|
context: context,
|
||||||
username: username,
|
username: username,
|
||||||
group_name: group_name,
|
group_name: group_name,
|
||||||
add_unsubscribe_link: !user.staged,
|
add_unsubscribe_link: !user.staged && !using_group_smtp,
|
||||||
mailing_list_mode: user.user_option.mailing_list_mode,
|
mailing_list_mode: user.user_option.mailing_list_mode,
|
||||||
unsubscribe_url: post.unsubscribe_url(user),
|
unsubscribe_url: post.unsubscribe_url(user),
|
||||||
allow_reply_by_email: allow_reply_by_email,
|
allow_reply_by_email: allow_reply_by_email,
|
||||||
@@ -713,8 +713,7 @@ class UserNotifications < ActionMailer::Base
|
|||||||
locale: locale,
|
locale: locale,
|
||||||
delivery_method_options: delivery_method_options,
|
delivery_method_options: delivery_method_options,
|
||||||
use_from_address_for_reply_to: use_from_address_for_reply_to,
|
use_from_address_for_reply_to: use_from_address_for_reply_to,
|
||||||
from: from_address,
|
from: from_address
|
||||||
add_unsubscribe_link: !using_group_smtp
|
|
||||||
}
|
}
|
||||||
|
|
||||||
unless translation_override_exists
|
unless translation_override_exists
|
||||||
|
|||||||
Reference in New Issue
Block a user