diff --git a/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java b/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java index 84469fa4d..e21def8ea 100644 --- a/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java +++ b/app/src/main/java/app/fedilab/android/peertube/client/RetrofitPeertubeAPI.java @@ -44,7 +44,6 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.UnsupportedEncodingException; -import java.net.IDN; import java.net.URL; import java.net.URLDecoder; import java.util.ArrayList; @@ -254,7 +253,7 @@ public class RetrofitPeertubeAPI { .proxy(app.fedilab.android.mastodon.helper.Helper.getProxy(_context.getApplicationContext())) .build(); Retrofit retrofit = new Retrofit.Builder() - .baseUrl("https://" + IDN.toASCII(instance, IDN.ALLOW_UNASSIGNED)) + .baseUrl("https://" + instance) .addConverterFactory(GsonConverterFactory.create()) .client(okHttpClient) .build();