owner->Authors(); // If comment is spam and notification are set to not send on spam clear the recipient list if (Config::inst()->get(__CLASS__, 'notification_on_spam') == false && $comment->IsSpam) { $list = []; } } /** * Update comment to include the page title. * * @param string $subject * @param Comment $comment * @param Member|string $recipient */ public function updateNotificationSubject(&$subject, &$comment, &$recipient) { $subject = sprintf('A new comment has been posted on %s', $this->owner->Title); } }