Skip to content

Commit

Permalink
Send real_name in quote notification emails
Browse files Browse the repository at this point in the history
The username was used in the quote notification emails
instead of real_name.

Fixes #7734
  • Loading branch information
BrickOzp committed Apr 26, 2023
1 parent 41c28f4 commit 50636d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/tasks/CreatePost-Notify.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,8 @@ protected function handleQuoteNotifications()
$msgOptions = &$this->_details['msgOptions'];
$posterOptions = &$this->_details['posterOptions'];

$members_info = $this->getMinUserInfo([$posterOptions['id']]);

foreach ($this->members['quoted'] as $member_id => $member_data)
{
if (in_array($member_id, $this->members['done']))
Expand Down Expand Up @@ -671,7 +673,7 @@ protected function handleQuoteNotifications()
{
$replacements = array(
'CONTENTSUBJECT' => $msgOptions['subject'],
'QUOTENAME' => $posterOptions['name'],
'QUOTENAME' => un_htmlspecialchars(isset($members_info[$posterOptions['id']]['name']) ? $members_info[$posterOptions['id']]['name'] : $posterOptions['name']),
'MEMBERNAME' => $member_data['real_name'],
'CONTENTLINK' => $scripturl . '?msg=' . $msgOptions['id'],
);
Expand Down

0 comments on commit 50636d6

Please sign in to comment.