jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/370371 )
Change subject: Look for dablinks when extracting hatnotes ...................................................................... Look for dablinks when extracting hatnotes Certain wiki pages use older wiki templates and disambiguation links are marked with .dablink e.g. https://en.wikivoyage.org/wiki/Mumbai Change-Id: Ieac31f6492e9d8ca3c15f787d0e5a2925777af45 --- M lib/transformations/extractHatnotes.js 1 file changed, 1 insertion(+), 1 deletion(-) Approvals: BearND: Looks good to me, approved jenkins-bot: Verified diff --git a/lib/transformations/extractHatnotes.js b/lib/transformations/extractHatnotes.js index e4bbd48..219dc5e 100644 --- a/lib/transformations/extractHatnotes.js +++ b/lib/transformations/extractHatnotes.js @@ -7,7 +7,7 @@ */ function extractHatnotes(lead, removeNodes) { const hatnotes = []; - const hatnoteNodes = lead.querySelectorAll('.hatnote'); + const hatnoteNodes = lead.querySelectorAll('.hatnote,.dablink'); Array.prototype.forEach.call(hatnoteNodes, (hatnoteNode, i) => { hatnotes.push(hatnoteNode.innerHTML); if (removeNodes) { -- To view, visit https://gerrit.wikimedia.org/r/370371 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ieac31f6492e9d8ca3c15f787d0e5a2925777af45 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/services/mobileapps Gerrit-Branch: master Gerrit-Owner: Jdlrobson <jrob...@wikimedia.org> Gerrit-Reviewer: BearND <bsitzm...@wikimedia.org> Gerrit-Reviewer: Dbrant <dbr...@wikimedia.org> Gerrit-Reviewer: Fjalapeno <cfl...@wikimedia.org> Gerrit-Reviewer: GWicke <gwi...@wikimedia.org> Gerrit-Reviewer: Jhernandez <jhernan...@wikimedia.org> Gerrit-Reviewer: Mholloway <mhollo...@wikimedia.org> Gerrit-Reviewer: Mhurd <mh...@wikimedia.org> Gerrit-Reviewer: Mobrovac <mobro...@wikimedia.org> Gerrit-Reviewer: Niedzielski <sniedziel...@wikimedia.org> Gerrit-Reviewer: Ppchelko <ppche...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits