mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
remove enable_email_names setting
This commit is contained in:
@@ -127,7 +127,7 @@ class UserNotifications < ActionMailer::Base
|
||||
title: post.topic.title,
|
||||
post: post,
|
||||
username: post.user.username,
|
||||
from_alias: (SiteSetting.enable_email_names && !post.user.name.empty?) ? post.user.name : post.user.username,
|
||||
from_alias: (SiteSetting.enable_names && !post.user.name.empty?) ? post.user.name : post.user.username,
|
||||
allow_reply_by_email: true,
|
||||
use_site_subject: true,
|
||||
add_re_to_subject: true,
|
||||
@@ -172,7 +172,7 @@ class UserNotifications < ActionMailer::Base
|
||||
return unless @post = opts[:post]
|
||||
|
||||
user_name = @notification.data_hash[:original_username]
|
||||
if @post && SiteSetting.enable_email_names
|
||||
if @post && SiteSetting.enable_names
|
||||
user_name = User.find_by(id: @post.user_id).name if !User.find_by(id: @post.user_id).name.empty?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user