Don't notify users of their own edits at least
authorAaron Schulz <aaron@users.mediawiki.org>
Sat, 17 May 2008 22:23:56 +0000 (22:23 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sat, 17 May 2008 22:23:56 +0000 (22:23 +0000)
includes/RecentChange.php

index 19f39dd..e7ef606 100644 (file)
@@ -222,10 +222,9 @@ class RecentChange
                }
 
                # E-mail notifications
-               global $wgUseEnotif;
-               if( $wgUseEnotif ) {
-                       # this would be better as an extension hook
-                       global $wgUser;
+               global $wgUseEnotif, $wgUser;
+               if( $wgUseEnotif && $this->mAttribs['rc_user'] != $wgUser->getID() ) {
+                       # FIXME: this would be better as an extension hook
                        $enotif = new EmailNotification;
                        $title = Title::makeTitle( $this->mAttribs['rc_namespace'], $this->mAttribs['rc_title'] );
                        $enotif->notifyOnPageChange( $wgUser, $title,