-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix(rss): add timestamp to guid #7648
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
apps/site/next-data/generators/websiteFeeds.mjs:44
- Appending a timestamp to the GUID may cause RSS readers to treat all posts as new on every update. Confirm that this behavior is intentional or consider documenting the expected behavior to avoid unintended feed refreshes.
guid: `${post.slug}?${date.getTime()}`,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
Can I ask why we're doing this -- what does it achieve that the existing guids + pubDates don't? And yes, given they're essentially new guids I suspect there's a good chance some readers will see them as new if the readers aren't looking at pubDate. |
According to #5996, |
Ah okay, that makes sense, and I think that also answers your question about whether this is going to make readers see them as new articles -- if the intent of the change is to make the timestamp changing trigger readers to see them as new articles, by that same logic adding the timestamp in the first place will make them see them as new articles. |
this was going to be my suggestion too |
Wouldn't it also need to apply to future updates to existing articles? It's probably the same implementation code (only concatenate the timestamp into the Also, the RSS reader I use (tt-rss) would treat each |
ideally yes, though if that's hard to code i'd still take this is under consideration work as an improvement. |
No, it's not hard to code. The pubDate represents the latest edit, despite it not not having any effect on RSS displaying updates |
Okay, I have it set to only enforce on You can ensure that this date is configured correctly by seeing that, on any XML, no |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Lighthouse Results
|
Description
This PR appends a publishing timestamp to each RSS entry GUID.
My only concern is if this will trigger every RSS feeder to display these articles again on merge.
I can set it to only apply to future articles by checking the date?
Validation
Related Issues
Fixes #5996
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.