mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: error when user name was nil
This commit is contained in:
parent
c89bef2762
commit
52c19d74f8
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ class UserNotifications < ActionMailer::Base
|
|||
title: post.topic.title,
|
||||
post: post,
|
||||
username: post.user.username,
|
||||
from_alias: (SiteSetting.enable_names && SiteSetting.display_name_on_posts && !post.user.name.empty?) ? post.user.name : post.user.username,
|
||||
from_alias: (SiteSetting.enable_names && SiteSetting.display_name_on_posts && post.user.name.present?) ? post.user.name : post.user.username,
|
||||
allow_reply_by_email: true,
|
||||
use_site_subject: true,
|
||||
add_re_to_subject: true,
|
||||
|
|
Loading…
Reference in a new issue