Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshinorin committed Jan 18, 2024
1 parent b04b4c5 commit dbe1ed3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/articles/[...slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/app/feeds/index.xml/route.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down Expand Up @@ -32,7 +32,7 @@ export async function GET() {
}
}) as Array<Feed>;

const feedXmlString = await generateFeedsString(url, feeds);
const feedXmlString = await generateFeedsString(url, siteName, mainAuthor, feeds);
return new Response(feedXmlString, {
headers: {
"Content-Type": "text/xml",
Expand Down

0 comments on commit dbe1ed3

Please sign in to comment.