feed icon indicating copy to clipboard operation
feed copied to clipboard

RSS 2 Item Author element totally wrong

Open paul-uz opened this issue 4 years ago • 6 comments

As per the RSS2 spec

<author> is an optional sub-element of <item>.

It's the email address of the author of the item. For newspapers and magazines syndicating via RSS, the author is the person who wrote the article that the <item> describes. For collaborative weblogs, the author of the item might be different from the managing editor or webmaster. For a weblog authored by a single individual it would make sense to omit the <author> element.

<author>[email protected] (Lawyer Boyer)</author>

Currently, this package defines an Author object with an optional name, email and link. If anything, email should be required. Link is not needed.

The current implementation is broken and does not correctly adhere to RSS 2.0.

paul-uz avatar Feb 17 '21 16:02 paul-uz

The tricky thing is that this package tries to wrap RSS2, Atom and JSON Feed using a single Feed Options schema. And all these specs doesn't match in every way.

I suggest you don't rely on the type definition to know if it adhere to the specs.

Additionally, we could provide a StrictFeedOptions that only allow undefined properties on fields that are not required in the 3 different specs.

jooola avatar May 24 '21 20:05 jooola

@jooola in that caase, this library should provide schemas for each feed type, or remove all assumptions eg the author issue I outlined.

paul-uz avatar May 25 '21 08:05 paul-uz

I agree.

This is also a blocker for me. I might try the enhance this library. But I need @jpmonette around in order to merge these enhancements.

jooola avatar May 25 '21 09:05 jooola

Any update on this? Do you need a help?

swilgosz avatar Jul 05 '21 21:07 swilgosz

Is there any way to JUST have the email listed in the author field? I've tried setting the name field to null or undefined, but then it won't render any tag. If you have anything or an empty string it will render "[email protected] ()"

GavanWilhite avatar Dec 17 '22 01:12 GavanWilhite