diff --git a/app/rss.xml/route.ts b/app/rss.xml/route.ts index bffa4e6b..3499818a 100644 --- a/app/rss.xml/route.ts +++ b/app/rss.xml/route.ts @@ -6,7 +6,7 @@ import { META_TITLE, PUBLIC_FEED_ENABLED, } from '@/app/config'; -import { feedPhotoToXml, formatPhotoForFeed } from '@/app/feed'; +import { feedPhotoToXml, formatPhotoForFeedRss } from '@/app/feed'; export const dynamic = 'force-static'; @@ -16,7 +16,7 @@ export async function GET() { limit: INFINITE_SCROLL_FEED_INITIAL, sortBy: 'createdAt', }); - const items = photos.map(formatPhotoForFeed).map(feedPhotoToXml); + const items = photos.map(formatPhotoForFeedRss).map(feedPhotoToXml); return new Response( ` diff --git a/src/app/feed.ts b/src/app/feed.ts index ba16e94f..7d4dc159 100644 --- a/src/app/feed.ts +++ b/src/app/feed.ts @@ -117,9 +117,9 @@ export const feedPhotoToXml = (photo: PublicFeedPhotoRss): string => { medium="image" width="${photo.media.content.width}" height="${photo.media.content.height}"> - + `; };