diff --git a/lib/middleware/anti-hotlink.ts b/lib/middleware/anti-hotlink.ts index ea8f077b0301c5..a5a0ad3c7b96c8 100644 --- a/lib/middleware/anti-hotlink.ts +++ b/lib/middleware/anti-hotlink.ts @@ -17,7 +17,7 @@ const matchPath = (path: string, paths: string[]) => { return false; }; -// return ture if the path needs to be processed +// return true if the path needs to be processed const filterPath = (path: string) => { const include = config.hotlink.includePaths; const exclude = config.hotlink.excludePaths; diff --git a/lib/routes/vimeo/category.ts b/lib/routes/vimeo/category.ts index dfbb8f2b342b2b..c95f098cbad2f9 100644 --- a/lib/routes/vimeo/category.ts +++ b/lib/routes/vimeo/category.ts @@ -64,7 +64,7 @@ async function handler(ctx) { const vimeojs = response.data.data; const feedlink = `https://vimeo.com/categories/${category}/videos/sort:latest`; - const feedlinkstaffpicks = '?staffpicked=ture'; + const feedlinkstaffpicks = '?staffpicked=true'; const feedDescription = await cache.tryGet(feedlink + (staffpicks ? feedlinkstaffpicks : ''), async () => { const response = await got({ url: feedlink + (staffpicks ? feedlinkstaffpicks : ''),