From 1671d8d826a08273fae5ccffc4a4ebfef9648fe2 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Thu, 19 Oct 2023 17:03:29 +0200 Subject: [PATCH] fix(Reddit - Sanitize sharing links): Restore compatibility with newer versions of the app --- .../url/fingerprints/ShareLinkFormatterFingerprint.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/fingerprints/ShareLinkFormatterFingerprint.kt b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/fingerprints/ShareLinkFormatterFingerprint.kt index be6d3469..269b298a 100644 --- a/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/fingerprints/ShareLinkFormatterFingerprint.kt +++ b/src/main/kotlin/app/revanced/patches/reddit/misc/tracking/url/fingerprints/ShareLinkFormatterFingerprint.kt @@ -3,7 +3,7 @@ package app.revanced.patches.reddit.misc.tracking.url.fingerprints import app.revanced.patcher.fingerprint.method.impl.MethodFingerprint object ShareLinkFormatterFingerprint : MethodFingerprint( - returnType = "Ljava/lang/String;", - parameters = listOf("Ljava/lang/String;", "Ljava/util/Map;"), - strings = listOf("uri.getQueryParameters(name)", "uri.queryParameterNames", "newUriBuilder.build().toString()"), + customFingerprint = { methodDef, classDef -> + methodDef.definingClass.startsWith("Lcom/reddit/sharing/") && classDef.sourceFile == "UrlUtil.kt" + } ) \ No newline at end of file