Temporary Fix Xiaohongshu for #17: Resolves Duplicate Items in Feed #21
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses the issue mentioned in #17, "RSS feed only showing the pinned post without updates". After some investigation,
noteCard.noteId
is not available due to changes on the site. As a result, the links for all note items in the feed were identical, causing RSS readers to treat them as duplicates and only display a single one of the notes.This PR introduces a
guid
field usingnoteCard.displayTitle
as a unique identifier for each note. It ensures that RSS readers can distinguish between the different notes, avoiding duplicate entries. User can then be alerted the update of the notes and check them from the user page.Future Considerations:
xsecToken
expirationguid
field instead of the raw title itself.This change helps mitigate the issue for now, ensuring the feed remains functional for RSS users.