Jdlrobson has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370692 )

Change subject: Pages with empty lead sections should send a 204
......................................................................

Pages with empty lead sections should send a 204

If preview is an empty string we'll want to return a 204
per the spec.

Change-Id: Ib889905d647853e50afa2de656ee47882eee89d8
---
M routes/mobile-sections.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps 
refs/changes/92/370692/1

diff --git a/routes/mobile-sections.js b/routes/mobile-sections.js
index 6110b35..6a64dbd 100644
--- a/routes/mobile-sections.js
+++ b/routes/mobile-sections.js
@@ -370,7 +370,7 @@
 
         if (!lead) {
             return false;
-        } else if (lead.contentmodel || lead.ns !== 0) {
+        } else if (lead.contentmodel || lead.ns !== 0 || !lead.html) {
             code = 204;
         } else if (lead.intro) {
             summary = transforms.summarize(lead.intro);

-- 
To view, visit https://gerrit.wikimedia.org/r/370692
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib889905d647853e50afa2de656ee47882eee89d8
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

Reply via email to