summaryrefslogtreecommitdiff
path: root/packages/astro-rss/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro-rss/src')
-rw-r--r--packages/astro-rss/src/index.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts
index 8779ac007..4d87586c3 100644
--- a/packages/astro-rss/src/index.ts
+++ b/packages/astro-rss/src/index.ts
@@ -163,8 +163,9 @@ export async function generateRSS({ rssOptions, items }: GenerateRSSArgs): Promi
if (typeof result.content === 'string') {
item['content:encoded'] = result.content;
}
- if (typeof rssOptions.customData === 'string')
- Object.assign(item, parser.parse(`<item>${rssOptions.customData}</item>`).item);
+ if (typeof result.customData === 'string') {
+ Object.assign(item, parser.parse(`<item>${result.customData}</item>`).item);
+ }
return item;
});