mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-24 04:25:56 +01:00
fix(Reddit - Sanitize sharing links): Restore compatibility with newer versions of the app
This commit is contained in:
parent
c954502c4f
commit
1671d8d826
@ -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"
|
||||
}
|
||||
)
|
Loading…
Reference in New Issue
Block a user