Commit 06935699 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1444182: Stop sending self notifications"

parents ce0e9a9c e9075aa3
......@@ -1989,6 +1989,10 @@ class ActivityTypeArtefactCommentFeedback extends ActivityTypePlugin {
$author = $comment->get('author');
if ($author) {
$this->fromuser = $author;
// We don't need to send an email to the inbox of the author of the comment as we send one to their outbox
if (isset($this->users[$author])) {
unset($this->users[$author]);
}
}
foreach ($this->users as $key => $user) {
$authorname = empty($author) ? $comment->get('authorname') : display_name($author, $user);
......
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