Skip to content

Commit

Permalink
Merge pull request #7736 from SimpleMachines/quote_name
Browse files Browse the repository at this point in the history
Send real_name in quote notification emails
  • Loading branch information
live627 authored Jul 12, 2023
2 parents d0850e9 + 50636d6 commit aea4824
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 aea4824

Please sign in to comment.