diff --git a/app/(pages)/anime/[slug]/layout.tsx b/app/(pages)/anime/[slug]/layout.tsx index 39d6dcc5..8aa696e0 100644 --- a/app/(pages)/anime/[slug]/layout.tsx +++ b/app/(pages)/anime/[slug]/layout.tsx @@ -62,7 +62,7 @@ export async function generateMetadata( const title = (anime.title_ua || anime.title_en || anime.title_ja) + (startDate ? ` (${startDate})` : ''); - let synopsis: string | undefined = await parseTextFromMarkDown( + let synopsis: string | undefined = parseTextFromMarkDown( anime.synopsis_ua || anime.synopsis_en, ); diff --git a/services/api/collections/getCollections.ts b/services/api/collections/getCollections.ts index d3f66ff1..b06dedde 100644 --- a/services/api/collections/getCollections.ts +++ b/services/api/collections/getCollections.ts @@ -7,6 +7,7 @@ type Request = { content_type?: string; author?: string; sort: 'system_ranking' | 'created'; + only_public?: boolean; page?: number; size?: number; }; @@ -17,6 +18,7 @@ export default async function req({ size = 15, content_type, author, + only_public, sort, }: Request): Promise { return fetchRequest({ @@ -26,6 +28,7 @@ export default async function req({ content_type, author, sort: [`${sort}:desc`], + only_public, }, auth, page, diff --git a/services/hooks/user/useUserCollections.ts b/services/hooks/user/useUserCollections.ts index f577cdaa..ffa11ed4 100644 --- a/services/hooks/user/useUserCollections.ts +++ b/services/hooks/user/useUserCollections.ts @@ -14,7 +14,8 @@ const useUserCollections = ({ username }: { username: string }) => { page: pageParam, auth, sort: 'created', - }), + only_public: false +}), }); };