Merge "RCFilters: Live update: no data returns 204"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 14 Sep 2017 18:11:14 +0000 (18:11 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 14 Sep 2017 18:11:14 +0000 (18:11 +0000)
1  2 
includes/specialpage/ChangesListSpecialPage.php

@@@ -533,7 -533,7 +533,7 @@@ abstract class ChangesListSpecialPage e
                // Used by "live update" and "view newest" to check
                // if there's new changes with minimal data transfer
                if ( $this->getRequest()->getBool( 'peek' ) ) {
-                       $code = $rows->numRows() > 0 ? 200 : 304;
+                       $code = $rows->numRows() > 0 ? 200 : 204;
                        $this->getOutput()->setStatusCode( $code );
                        return;
                }
                                'wgStructuredChangeFiltersEnableExperimentalViews',
                                $experimentalStructuredChangeFilters
                        );
 -                      $out->addJsConfigVars(
 -                              'wgStructuredChangeFiltersEnableLiveUpdate',
 -                              $this->getConfig()->get( 'StructuredChangeFiltersEnableLiveUpdate' )
 -                      );
                        $out->addJsConfigVars(
                                'wgRCFiltersChangeTags',
                                $this->buildChangeTagList()