Commit e9075aa3 authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells
Browse files

Bug 1444182: Stop sending self notifications



Stop sending comment notifications to page owner when
page owner is the commentor

behatnotneeded

Change-Id: Ibfe80b7bb57855592e7d04cc653c649b7d08a148
Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
parent c01b02cb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);