Commit 25ea5a9
committed
fix(sites): Remediate false positive for Spotify
- Changed errorType from 'status_code' to 'message'
- Added errorMsg check for 'Page not found'
- Updated username_claimed to 'spotify' (verified working)
Spotify returns HTTP 200 for both valid and invalid users, then
shows 'Page not found' in the HTML for non-existent profiles.
The previous status_code check caused false positives.
Tested with:
- Non-existent user: Correctly returns NOT FOUND
- Real user 'spotify': Correctly returns FOUND
- Verified against username_claimed
Fixes: #25471 parent 184470f commit 25ea5a9
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2273 | 2273 | | |
2274 | 2274 | | |
2275 | 2275 | | |
2276 | | - | |
| 2276 | + | |
| 2277 | + | |
2277 | 2278 | | |
2278 | 2279 | | |
2279 | | - | |
| 2280 | + | |
2280 | 2281 | | |
2281 | 2282 | | |
2282 | 2283 | | |
| |||
0 commit comments