fix(X / Twitter - Change link sharing domain): Use bytecode patching to resolve patching with Manager (#6125)

This commit is contained in:
ADudeCalledLeo
2025-10-16 22:29:01 +03:00
committed by GitHub
parent 96454c843b
commit 0af8c8a766
3 changed files with 48 additions and 3 deletions

View File

@@ -11,6 +11,16 @@ public final class ChangeLinkSharingDomainPatch {
return "";
}
// TODO remove this once changeLinkSharingDomainResourcePatch is restored
/**
* Injection point.
*/
public static String formatResourceLink(Object... formatArgs) {
String username = (String) formatArgs[0];
String tweetId = (String) formatArgs[1];
return String.format(LINK_FORMAT, getShareDomain(), username, tweetId);
}
/**
* Injection point.
*/