Skip to content

fix: Update Twitter(X) detection logic in data.json#2909

Open
rigen1048 wants to merge 1 commit intosherlock-project:masterfrom
rigen1048:OSI
Open

fix: Update Twitter(X) detection logic in data.json#2909
rigen1048 wants to merge 1 commit intosherlock-project:masterfrom
rigen1048:OSI

Conversation

@rigen1048
Copy link
Copy Markdown

X no longer includes "This account doesn’t exist" reliably in the initial HTML response for non-existent profiles due to heavy client-side rendering.

The server now returns the same shell (with loading state + X logo) for both claimed and non-existent usernames, and the real success/failure decision lives in the __INITIAL_STATE__ JSON.

  • Added reliable signals "ApiError" and "\"code\":50" that only appear when the username is not found.
  • Kept original strings as fallback.
  • urlProbe updated to official https://x.com/{} (Nitter instance is dead).
  • No code changes required — pure data.json update.

Tested manually:

  • jdhjasds (non-existent) → correctly reports Available
  • blue (claimed) → correctly reports Claimed

This should resolve the long-standing broken Twitter probe that multiple automated attempts couldn't fix.

@github-actions
Copy link
Copy Markdown
Contributor

Automatic validation of changes

Target F+ Check F- Check
Twitter ✔️   Pass ✔️   Pass

@rigen1048 rigen1048 changed the title Fixed Twitter(X) in data.json fix: Update Twitter(X) detection logic in data.json Apr 20, 2026
@rigen1048
Copy link
Copy Markdown
Author

rigen1048 commented May 5, 2026

Hey @ppfeister @sdushantha, I was wondering if there’s anything I can do to help move this PR forward....

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.

1 participant