Spaces:
Running
Running
Fix typo: likeAt => likedAt
#14
by
julien-c
HF staff
- opened
No description provided.
timqian
changed pull request status to
open
ππ looks like an empty commit
hmm yeah sorry i don't manage to push my fix, but basically there's a typo in your code, it should be likedAt
. And future server optimizations might break your code. Please apply the following diff!
diff --git a/README.md b/README.md
index 8942a1f..d5fdbe9 100644
--- a/README.md
+++ b/README.md
@@ -12,4 +12,4 @@ thumbnail: https://cdn-uploads.huggingface.co/production/uploads/61fd75b93c49561
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
-API: https://huggingface.co/api/spaces/facebook/seamless_m4t/likers?expand[]=likeAt
\ No newline at end of file
+API: https://huggingface.co/api/spaces/facebook/seamless_m4t/likers?expand[]=likedAt
\ No newline at end of file
diff --git a/extension/popup.js b/extension/popup.js
index 6031bf2..ee1ca3e 100644
--- a/extension/popup.js
+++ b/extension/popup.js
@@ -22,7 +22,7 @@ chrome.tabs.query({ active: true, currentWindow: true }, async function (tabs) {
}
// get project info
- const res = await fetch(`https://huggingface.co/api/${type}/${path}/likers?expand[]=likeAt`)
+ const res = await fetch(`https://huggingface.co/api/${type}/${path}/likers?expand[]=likedAt`)
const likers = await res.json()
let likeHistory = transformLikesData(likers)
diff --git a/src/App.js b/src/App.js
index 50d8866..0a02428 100644
--- a/src/App.js
+++ b/src/App.js
@@ -53,7 +53,7 @@ function App() {
}
async function getLikeHistory(projectPath) {
- const res = await fetch(`https://huggingface.co/api/${projectPath}/likers?expand[]=likeAt`)
+ const res = await fetch(`https://huggingface.co/api/${projectPath}/likers?expand[]=likedAt`)
/**
* Format: