Skip to content

fix(twitter): show sensitive media #1572 - #1605

Open
mhcp00 wants to merge 2 commits into
crimera:mainfrom
mhcp00:fix_show_sensitive
Open

fix(twitter): show sensitive media #1572#1605
mhcp00 wants to merge 2 commits into
crimera:mainfrom
mhcp00:fix_show_sensitive

Conversation

@mhcp00

@mhcp00 mhcp00 commented Jul 28, 2026

Copy link
Copy Markdown

Fix the issue "show sensitive media" in #1572, for "Remove premium upsell" there is already a fix in 3.9.0-dev.1

The previous JSON was ignored, now it use JsonTweetWithVisibilityResults where
the media_visibility_results object is removed so there are no visibility limits
@mhcp00

mhcp00 commented Jul 28, 2026

Copy link
Copy Markdown
Author

Tested on version 12.11


methods.addInstructions(
returnObj,
val method = sensitiveMediaSettingsPatchFingerprint.method

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it would be better if we hook the parse method like we have done for timeline items and handle the fields on java rather than in smali.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which fields?
There are no fields to edit but just avoid loading a part of the JSON.
The old fields are no longer used by the current version of X.
Much of the code is left but is not being executed.

@mhcp00 mhcp00 Jul 28, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can restore the code inside TimelineEntry and change the sensitiveMedia method so that it returns to a boolean and then inside the JsonTweetWithVisibilityResults$$JsonObjectMapper class, verify that boolean to enable or not the loading of media_visibility_results from TweetWithVisibilityResults.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants