yogthos / clj-rss

a library for generating RSS feeds
64 stars 16 forks source link

RSS link is not the same as atom rel=self #22

Open nivekuil opened 3 years ago

nivekuil commented 3 years ago

The link field in RSS is the link of the website, but this library also uses it to set this atom attribute https://github.com/yogthos/clj-rss/blob/master/src/clj_rss/core.clj#L137 which is supposed to be the URL of the feed itself

yogthos commented 3 years ago

I see, sounds like adding an additional :url key would be the way to go then?

nivekuil commented 3 years ago

would work,' or maybe :feed-url to be less ambiguous

yogthos commented 3 years ago

Good call, I've added the feature in this commit. Let me know if that looks good on your end and I can push out a new version. I've kept the original behavior when :feed-url is not specified for backwards compatibility.