fix(sites): Fix Threads false positive detection
Threads was showing false positives for non-existent users because the error message detection was incorrect. Updated errorMsg: - Old: "<title>Threads</title>" (generic, matches valid pages too) - New: "<title>Threads • Log in</title>" (specific to non-existent users) When a user doesn't exist, Threads redirects to a login page with the title "Threads • Log in". Valid user profiles have titles like "Username (@username) • Threads, Say more". Tested with: - Invalid user (impossibleuser12345): Correctly not found - Valid user (zuck): Correctly found This fixes the false positive issue where non-existent Threads profiles were being reported as found.
This commit is contained in:
@@ -2820,7 +2820,7 @@
|
||||
"username_claimed": "green"
|
||||
},
|
||||
"threads": {
|
||||
"errorMsg": "<title>Threads</title>",
|
||||
"errorMsg": "<title>Threads • Log in</title>",
|
||||
"errorType": "message",
|
||||
"headers": {
|
||||
"Sec-Fetch-Mode": "navigate"
|
||||
|
||||
Reference in New Issue
Block a user