Skip to content

Commit

Permalink
Merge pull request #2452 from Leantime/FixMentionsBug
Browse files Browse the repository at this point in the history
Update Notifications.php
  • Loading branch information
marcelfolaron authored Apr 2, 2024
2 parents a287410 + c88d205 commit add8c06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Domain/Notifications/Services/Notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,11 @@ public function processMentions(string $content, string $module, int $moduleId,
$emailMessage = $subject;
$emailMessage .= sprintf($this->language->__('text.click_here'), $url);
$mailer->setHtml($emailMessage);
$mailer->sendMail(array($taggedUser), $authorName);

$taggedUserObject = $this->userRepository->getUser($taggedUser);
if(!empty($taggedUserObject['username'])) {
$mailer->sendMail(array($taggedUserObject['username']), $authorName);
}
}
}
}
Expand Down

0 comments on commit add8c06

Please sign in to comment.