Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: allow rss feeds to have an enclosure with length of 0 #9967

Merged

Conversation

madcampos
Copy link
Contributor

Changes

It allows for an enclosure in an RSS feed to have a length of 0.

Reference on this change: https://www.rssboard.org/rss-profile#element-channel-item-enclosure:~:text=When%20an%20enclosure%27s%20size%20cannot%20be%20determined%2C%20a%20publisher%20SHOULD%20use%20a%20length%20of%200.

Testing

Added unit test.

Docs

It would be nice to point people to use a value of 0 for enclosure length if they are processing the images with Astro.

/cc @withastro/maintainers-docs

Copy link

changeset-bot bot commented Feb 3, 2024

🦋 Changeset detected

Latest commit: 67825d1

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@Princesseuh
Copy link
Member

Oops didn't see the test failure. Seems to be missing a space.

@madcampos
Copy link
Contributor Author

I completely missed the space too, thanks for catching that!

Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
@Princesseuh Princesseuh merged commit 8b8f26f into withastro:main Feb 4, 2024
13 checks passed
@astrobot-houston astrobot-houston mentioned this pull request Feb 4, 2024
@madcampos madcampos deleted the fix/allow-zero-lenght-enclosure branch February 9, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants