mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-24 02:39:33 +00:00
Remove the code the tries to create an invalid notification
Although invalid notification would be checked and not be created, it's better to get rid of any attempt of creating invalid notifications Change-Id: I4bdbf7e0706b3613c7cf31ab07570fb4d1cdd045
This commit is contained in:
parent
f4d033b9b2
commit
5d32291b12
|
@ -397,13 +397,6 @@ class EchoHooks {
|
|||
public static function onArticleSaved( &$article, &$user, $text, $summary, $minoredit, $watchthis, $sectionanchor, &$flags, $revision, &$status ) {
|
||||
global $wgEchoNotifications, $wgRequest;
|
||||
if ( $revision ) {
|
||||
EchoEvent::create( array(
|
||||
'type' => 'edit',
|
||||
'title' => $article->getTitle(),
|
||||
'extra' => array( 'revid' => $revision->getID() ),
|
||||
'agent' => $user,
|
||||
) );
|
||||
|
||||
if ( $article->getTitle()->isTalkPage() ) {
|
||||
EchoDiscussionParser::generateEventsForRevision( $revision );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue