Jdlrobson has uploaded a new change for review. https://gerrit.wikimedia.org/r/309219
Change subject: WIP: Breaking change - drop lead section from sections property ...................................................................... WIP: Breaking change - drop lead section from sections property Tests will fail until I fix them but no urgency just yet as we may want to handle this via versioning instead. Change-Id: I5ad3f209547922bd69aa74c2045ea1a706952061 --- M routes/mobile-sections.js 1 file changed, 2 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps refs/changes/19/309219/1 diff --git a/routes/mobile-sections.js b/routes/mobile-sections.js index 5d1c99e..dbc3af6 100644 --- a/routes/mobile-sections.js +++ b/routes/mobile-sections.js @@ -83,6 +83,8 @@ var infobox = transforms.extractInfobox(lead); var hatnote = transforms.extractHatnote(lead); var paragraph = transforms.extractLeadParagraph(lead); + // drop the first section. We'll surface it as a `text` property. + input.page.sections.shift(); return { ns: input.meta.ns, -- To view, visit https://gerrit.wikimedia.org/r/309219 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I5ad3f209547922bd69aa74c2045ea1a706952061 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/mobileapps Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits