Skip to content

Commit

Permalink
fix(routes/bilibili/user/collection): fix embed param not correct han…
Browse files Browse the repository at this point in the history
…dle (#18252)

related to #18191
  • Loading branch information
cscnk52 authored Jan 31, 2025
1 parent 1104bbc commit 7507c47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/routes/bilibili/user-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import got from '@/utils/got';
import cache from './cache';
import utils from './utils';
import { parseDate } from '@/utils/parse-date';
import { queryToBoolean } from '@/utils/readable-social';

const notFoundData = {
title: '此 bilibili 频道不存在',
Expand Down Expand Up @@ -35,7 +36,7 @@ export const route: Route = {
async function handler(ctx) {
const uid = Number.parseInt(ctx.req.param('uid'));
const sid = Number.parseInt(ctx.req.param('sid'));
const embed = !ctx.req.param('embed');
const embed = queryToBoolean(ctx.req.param('embed') || 'true');
const sortReverse = Number.parseInt(ctx.req.param('sortReverse')) === 1;
const page = ctx.req.param('page') ? Number.parseInt(ctx.req.param('page')) : 1;
const limit = ctx.req.query('limit') ?? 25;
Expand Down

0 comments on commit 7507c47

Please sign in to comment.