Skip to content

Commit

Permalink
Revert "don't detect own edits as edit conflict (#352)" (#354)
Browse files Browse the repository at this point in the history
This reverts commit 37b42ad.
  • Loading branch information
NovemLinguae authored Apr 28, 2024
1 parent 37b42ad commit 25edf81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2695,13 +2695,13 @@
titles: [ mw.config.get( 'wgPageName' ) ],
formatversion: 2,
rvstartid: mw.config.get( 'wgRevisionId' ),
rvdir: 'newer',
rvexcludeuser: mw.config.get( 'wgUserName' )
rvdir: 'newer'
};
var promise = AFCH.api.postWithEditToken( request )
.then( function ( data ) {
var revisions = data.query.pages[ 0 ].revisions;
if ( revisions && revisions.length > 0 ) {
// 1 revision = no edit conflict, 2+ revisions = edit conflict.
if ( revisions && revisions.length > 1 ) {
return true;
}
return false;
Expand Down

0 comments on commit 25edf81

Please sign in to comment.