fix(Reddit - Sanitize sharing links): Restore compatibility with newer versions of the app

This commit is contained in:
oSumAtrIX 2023-10-19 17:03:29 +02:00
parent c954502c4f
commit 1671d8d826
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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"
}
)