wfDebug( __METHOD__.": user talk page edited, but user does not exist\n" );
} elseif ( $targetUser->getId() == $editor->getId() ) {
wfDebug( __METHOD__.": user edited their own talk page, no notification sent\n" );
- } else {
+ } elseif( $targetUser->getOption( 'enotifusertalkpages' ) ) {
+ wfDebug( __METHOD__.": sending talk page update notification\n" );
$this->compose( $targetUser );
$userTalkId = $targetUser->getId();
+ } else {
+ wfDebug( __METHOD__.": talk page owner doesn't want notifications\n" );
}
}