The current implementation of the RSS feed for We Work Meteor (blob used below is here) has an issue when actually used with an RSS reader. Every time a new document is added to a collection, the entire feed is re-published with the whole collection. The reader winds up showing duplicate posts from the last publishing effort.
The solutions I've considered are:
- Using amplify to store a the
pubDate
on the client and then using that to define the earliest post to publish in the feed. Not sure if it's even possible with feed readers. - Add a new property to the collections called
published
and set it totrue
once that particular document is published in a feed. Every time the feed is published it would only findpublished:false
documents. An example is below, but the schemas need to be updated too. - Limiting the
.find()
to just the posts after the last build