When I update the @astrojs/rss package to 1.1.0, the new RSSFeedItem’s content property works as expected but anything passed to customData is omitted from the rendered output.
It looks like the cause is this commit, which seems like it’s mistakenly looking at rssOptions.customData when it should be result.customData.
In the StackBlitz example, you can see a <dc:creator> tag for “Third Post” when the RSS package is pinned to 1.0.3:
Updating to 1.1.0, that tag vanishes. (Which has no relationship to the content parameter.) Anything passed to customData will fail to appear in the rendered feed:
What version of
astro
are you using?1.6.14
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
macOS 13.0.1
Describe the Bug
When I update the @astrojs/rss package to 1.1.0, the new RSSFeedItem’s
content
property works as expected but anything passed tocustomData
is omitted from the rendered output.It looks like the cause is this commit, which seems like it’s mistakenly looking at
rssOptions.customData
when it should beresult.customData
.In the StackBlitz example, you can see a
<dc:creator>
tag for “Third Post” when the RSS package is pinned to 1.0.3:Updating to 1.1.0, that tag vanishes. (Which has no relationship to the
content
parameter.) Anything passed tocustomData
will fail to appear in the rendered feed:Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-7ijnap-7fzwp3?file=src/pages/rss.xml.js
Participation