Skip to content

Commit

Permalink
fix(Sync for Reddit - Fix /s/ links): Fix patch by using correct fing…
Browse files Browse the repository at this point in the history
…erprints
  • Loading branch information
oSumAtrIX committed Nov 11, 2024
1 parent ac1f6a2 commit a0ad07e
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import app.revanced.patcher.extensions.InstructionExtensions.getInstruction
import app.revanced.patcher.util.smali.ExternalLabel
import app.revanced.patches.reddit.customclients.RESOLVE_S_LINK_METHOD
import app.revanced.patches.reddit.customclients.SET_ACCESS_TOKEN_METHOD
import app.revanced.patches.reddit.customclients.boostforreddit.fix.slink.getOAuthAccessTokenFingerprint
import app.revanced.patches.reddit.customclients.boostforreddit.fix.slink.handleNavigationFingerprint
import app.revanced.patches.reddit.customclients.fixSLinksPatch
import app.revanced.patches.reddit.customclients.sync.syncforreddit.extension.sharedExtensionPatch

Expand All @@ -26,7 +24,7 @@ val fixSLinksPatch = fixSLinksPatch(
execute {
// region Patch navigation handler.

handleNavigationFingerprint.method.apply {
linkHelperOpenLinkFingerprint.method.apply {
val urlRegister = "p3"
val tempRegister = "v2"

Expand All @@ -46,7 +44,7 @@ val fixSLinksPatch = fixSLinksPatch(

// region Patch set access token.

getOAuthAccessTokenFingerprint.method.addInstruction(
setAuthorizationHeaderFingerprint.method.addInstruction(
0,
"invoke-static { p0 }, $EXTENSION_CLASS_DESCRIPTOR->$SET_ACCESS_TOKEN_METHOD",
)
Expand Down

0 comments on commit a0ad07e

Please sign in to comment.