tfrere HF Staff Cursor commited on
Commit
9ce28e1
·
1 Parent(s): 7d49524

fix: replace programmatic like with redirect to HF Space page

Browse files

HuggingFace intentionally blocks programmatic likes via API tokens to
prevent spam. Replace the failing POST /api/spaces/{id}/like call with
a redirect to the Space page on huggingface.co where users can like
natively. Likes are refreshed automatically when the tab regains focus.
Also remove the now-unnecessary write-discussions OAuth scope.

Co-authored-by: Cursor <cursoragent@cursor.com>

4 files changed +63 -80
Files changed (4)
README.md-2
src/components/InstallModal.jsx+9-4
src/context/AuthContext.jsx+27-63
src/pages/Apps.jsx+27-11