mirror of
https://github.com/soxoj/maigret.git
synced 2026-09-29 13:14:53 +02:00
fix: probe HuggingFace via the API endpoint (#2957)
The profile route returns 200 for reserved paths (models, pricing, docs) and for
organization pages, so all of them were reported as user accounts. Checking
/api/users/{username}/overview instead returns 404 for those, while `url` stays
the profile page so reports keep linking to a readable page.
This commit is contained in:
@@ -3081,6 +3081,7 @@
|
||||
"HuggingFace": {
|
||||
"checkType": "status_code",
|
||||
"url": "https://huggingface.co/{username}",
|
||||
"urlProbe": "https://huggingface.co/api/users/{username}/overview",
|
||||
"urlMain": "https://huggingface.co/",
|
||||
"usernameClaimed": "blue",
|
||||
"usernameUnclaimed": "noonewouldeverusethis7",
|
||||
|
||||
Reference in New Issue
Block a user