Commit 747c74ac authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1443282: Show the proper author in feedback notifications"

parents f6db0180 5de39ecf
......@@ -1524,6 +1524,9 @@ class ActivityTypeArtefactCommentFeedback extends ActivityTypePlugin {
// Email
$author = $comment->get('author');
if ($author) {
$this->fromuser = $author;
}
foreach ($this->users as $key => $user) {
$authorname = empty($author) ? $comment->get('authorname') : display_name($author, $user);
if (empty($user->lang) || $user->lang == 'default') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment