Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyRL committed Sep 24, 2024
1 parent b7a8eb3 commit 25d53e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/middleware/anti-hotlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/vimeo/category.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ''),
Expand Down

0 comments on commit 25d53e8

Please sign in to comment.