From dbe1ed3cecd544976ce2d198c1d97f9e8cfe58c6 Mon Sep 17 00:00:00 2001 From: yoshinorin Date: Fri, 19 Jan 2024 00:00:54 +0900 Subject: [PATCH] update --- src/app/articles/[...slug]/page.tsx | 2 +- src/app/feeds/index.xml/route.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/articles/[...slug]/page.tsx b/src/app/articles/[...slug]/page.tsx index b32819e..3b92dbe 100644 --- a/src/app/articles/[...slug]/page.tsx +++ b/src/app/articles/[...slug]/page.tsx @@ -68,7 +68,7 @@ async function get(req: any) { title: contentResponse.title, robotsAttributes: contentResponse.robotsAttributes, externalResources: contentResponse.externalResources, - tags: contentResponse.tags, + tags: contentResponse.tags?? [], description: contentResponse.description, content: contentResponse.content, length: contentResponse.length, diff --git a/src/app/feeds/index.xml/route.ts b/src/app/feeds/index.xml/route.ts index bfca002..1f49f7e 100644 --- a/src/app/feeds/index.xml/route.ts +++ b/src/app/feeds/index.xml/route.ts @@ -1,7 +1,7 @@ import { Feed } from '../../../models/models'; import { getFeed } from '../../../api/feed'; import { generateFeedsString } from '../../../services/feeds'; -import { url } from '../../../../config'; +import { url, siteName, mainAuthor, } from '../../../../config'; import { getRequestContext } from '../../../utils/requestContext'; //export async function get(ctx: any) { @@ -32,7 +32,7 @@ export async function GET() { } }) as Array; - const feedXmlString = await generateFeedsString(url, feeds); + const feedXmlString = await generateFeedsString(url, siteName, mainAuthor, feeds); return new Response(feedXmlString, { headers: { "Content-Type": "text/xml",