Skip to content

Commit 5871923

Browse files
committed
feat(Sync for Reddit): Rename patch to Use /user/ endpoint
The bug it was used to fix does not occur anymore. This name is more correct on what the patch actually does.
1 parent fcb68cc commit 5871923

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

api/revanced-patches.api

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -828,8 +828,8 @@ public final class app/revanced/patches/reddit/customclients/syncforreddit/fix/s
828828
public static final field INSTANCE Lapp/revanced/patches/reddit/customclients/syncforreddit/fix/slink/FixSLinksPatch;
829829
}
830830

831-
public final class app/revanced/patches/reddit/customclients/syncforreddit/fix/user/FixUserEndpointPatch : app/revanced/patcher/patch/BytecodePatch {
832-
public static final field INSTANCE Lapp/revanced/patches/reddit/customclients/syncforreddit/fix/user/FixUserEndpointPatch;
831+
public final class app/revanced/patches/reddit/customclients/syncforreddit/fix/user/UseUserEndpointPatch : app/revanced/patcher/patch/BytecodePatch {
832+
public static final field INSTANCE Lapp/revanced/patches/reddit/customclients/syncforreddit/fix/user/UseUserEndpointPatch;
833833
public fun execute (Lapp/revanced/patcher/data/BytecodeContext;)V
834834
public synthetic fun execute (Lapp/revanced/patcher/data/Context;)V
835835
}
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ import com.android.tools.smali.dexlib2.iface.instruction.OneRegisterInstruction
1717
import com.android.tools.smali.dexlib2.iface.reference.StringReference
1818

1919
@Patch(
20-
name = "Fix /user/ endpoint",
21-
description = "Fixes the endpoint for viewing user profiles by replacing /u/ with /user/.",
20+
name = "Use /user/ endpoint",
21+
description = "Replaces the deprecated endpoint for viewing user profiles /u with /user, that used to fix a bug.",
2222
compatiblePackages = [
2323
CompatiblePackage("com.laurencedawson.reddit_sync"),
2424
CompatiblePackage("com.laurencedawson.reddit_sync.pro"),
2525
CompatiblePackage("com.laurencedawson.reddit_sync.dev"),
2626
],
27+
use = false,
2728
)
2829
@Suppress("unused")
29-
object FixUserEndpointPatch : BytecodePatch(
30+
object UseUserEndpointPatch : BytecodePatch(
3031
fingerprints = setOf(
3132
OAuthFriendRequestFingerprint,
3233
OAuthSubredditInfoRequestConstructorFingerprint,

0 commit comments

Comments
 (0)