fix(X / Twitter - Change link sharing domain): Use bytecode patching to resolve patching with Manager (#6125)
This commit is contained in:
parent
96454c843b
commit
0af8c8a766
3 changed files with 48 additions and 3 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue