diff --git a/RemoveZoomLimit/build.gradle.kts b/RemoveZoomLimit/build.gradle.kts index 6e7dd41..3c9ad1f 100644 --- a/RemoveZoomLimit/build.gradle.kts +++ b/RemoveZoomLimit/build.gradle.kts @@ -1,9 +1,13 @@ -version = "1.0.9" +version = "1.0.10" description = "Removes maximum zoom limit." aliucord.changelog.set(""" Fixed {updated marginTop} ====================== + ## 1.0.10 + * fixed not loading embedded attachments + + ## 1.0.9 * fixed not loading attachments in media viewer """.trimIndent()) diff --git a/RemoveZoomLimit/src/main/java/io/github/juby210/acplugins/RemoveZoomLimit.java b/RemoveZoomLimit/src/main/java/io/github/juby210/acplugins/RemoveZoomLimit.java index f0dbe0e..59cb07f 100644 --- a/RemoveZoomLimit/src/main/java/io/github/juby210/acplugins/RemoveZoomLimit.java +++ b/RemoveZoomLimit/src/main/java/io/github/juby210/acplugins/RemoveZoomLimit.java @@ -67,7 +67,7 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c @Override public void start(Context context) throws Throwable { // remove limited width and height from the url - var pattern = Pattern.compile("\\?width=\\d+&height=\\d+"); + var pattern = Pattern.compile("width=\\d+&height=\\d+"); patcher.patch(WidgetMedia.class, "getFormattedUrl", new Class[]{ Context.class, Uri.class }, new Hook(param -> { var res = (String) param.getResult(); if (res.contains(".discordapp.net/")) param.setResult(pattern.matcher(res).replaceFirst(""));