Skip to content

Commit

Permalink
fix(Twitter): Add support for version 10.64.0-beta.1
Browse files Browse the repository at this point in the history
  • Loading branch information
crimera committed Oct 20, 2024
1 parent 6e58729 commit 015f492
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,14 @@ public static void downloader(Context activity, Object tweet) throws NoSuchMetho
Check how many versions this naive implementation lasts. checked until
versions 10.48 and the method names were the same.
*/
Method getUserNameMethod = tweetClass.getDeclaredMethod("q");
Method getUserNameMethod = tweetClass.getDeclaredMethod("r");
Method getMediaMethod = tweetClass.getDeclaredMethod("b");

String username = (String) getUserNameMethod.invoke(tweet);
if (username == null) {
Utils.toast("username is not found");
}
assert username != null;
Object obj = getMediaMethod.invoke(tweet);
ArrayList<HashMap<String, String>> media = getMediaData(obj);

Expand Down

0 comments on commit 015f492

Please sign in to comment.