Niedzielski has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/252775

Change subject: Use protocol relative pronunciation URLs
......................................................................

Use protocol relative pronunciation URLs

The Content Service was updated to use protocol relative URLs so it may
be used with any MediaWiki. This patch adds the relevant protocol
(HTTPS) on the app side.

Change-Id: Icca1a1f9bd246d562a6936b5ff6ae8927712b7b7
Depends: Ie8bcd2fbd1d649d5f2c402662398244b42dde061
---
M app/src/main/java/org/wikipedia/server/restbase/RbPageLead.java
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/android/wikipedia 
refs/changes/75/252775/1

diff --git a/app/src/main/java/org/wikipedia/server/restbase/RbPageLead.java 
b/app/src/main/java/org/wikipedia/server/restbase/RbPageLead.java
index 7af8400..fc3b282 100644
--- a/app/src/main/java/org/wikipedia/server/restbase/RbPageLead.java
+++ b/app/src/main/java/org/wikipedia/server/restbase/RbPageLead.java
@@ -6,6 +6,7 @@
 import org.wikipedia.page.Section;
 import org.wikipedia.server.PageLead;
 import org.wikipedia.server.PageLeadProperties;
+import org.wikipedia.util.UriUtil;
 import org.wikipedia.util.log.L;
 
 import com.google.gson.JsonArray;
@@ -119,7 +120,9 @@
     @Override
     @Nullable
     public String getTitlePronunciationUrl() {
-        return titlePronunciation == null ? null : titlePronunciation.getUrl();
+        return titlePronunciation == null
+                ? null
+                : 
UriUtil.resolveProtocolRelativeUrl(titlePronunciation.getUrl());
     }
 
     public int getLanguageCount() {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icca1a1f9bd246d562a6936b5ff6ae8927712b7b7
Gerrit-PatchSet: 1
Gerrit-Project: apps/android/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Niedzielski <sniedziel...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to