Skip to content

Commit

Permalink
submission: add reviewer to WP:AFC/recent
Browse files Browse the repository at this point in the history
Fixes wikimedia-gadgets#367

This corresponding edit to Template:AfC contribution makes this patch work: https://en.wikipedia.org/w/index.php?title=Template%3AAfC_contribution&diff=1241908041&oldid=619305950
  • Loading branch information
NovemLinguae committed Aug 23, 2024
1 parent df54c41 commit 04ea478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2426,11 +2426,12 @@
// AFC/RECENT
// ----------

var reviewer = AFCH.consts.user;
$.when( recentPage.getText(), afchSubmission.getSubmitter() )
.then( function ( text, submitter ) {
var newRecentText = text,
matches = text.match( /{{afc contrib.*?}}\s*/gi ),
newTemplate = '{{afc contrib|' + data.newAssessment + '|' + newPage + '|' + submitter + '}}\n';
newTemplate = '{{afc contrib|' + data.newAssessment + '|' + newPage + '|' + submitter + '|' + reviewer + '}}\n';

// Remove the older entries (at bottom of the page) if necessary
// to ensure we keep only 10 entries at any given point in time
Expand Down

0 comments on commit 04ea478

Please sign in to comment.