Commit 5de39ecf authored by Aaron Wells's avatar Aaron Wells

Bug 1443282: Show the proper author in feedback notifications

Unfortunately this doesn't work for anonymous feedback, because
the notification_internal_activity table only has an integer
column for the userid in the "from" column. To handle anonymous
feedback we would need a string for the "from" column.

Change-Id: Ia429a548b371d30166775e51f95cd5998062445f
parent 3d98863f
......@@ -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