Skip to content
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

feat: add option to filter out future-dated entries #2976

Closed
wants to merge 0 commits into from

Conversation

Sevichecc
Copy link
Contributor

@Sevichecc Sevichecc commented Dec 7, 2024

Description:

This PR implements a new feature that allows users to filter out entries with future publication dates, addressing the issue raised in #2971.

Changes:

  • Added a new setting "Filter future entries" in the settings page
  • When enabled, this filter affects all UI pages displaying entries, except for:
    • Starred entries page
    • History page
  • Added a new search query parameter without_future=true to the API for filtering future entries

For testing:
You can use this RSS feed containing future-dated entries for testing: https://hugooo.vercel.app/index.xml

Fixes #2971


Do you follow the guidelines?

@fguillot
Copy link
Member

What about adding a new block rule based on the entry date to filter out articles instead of making all these modifications in the web UI? With the current proposal, future articles will remain visible for people using third-party applications like GReader or Fever API.

@Sevichecc
Copy link
Contributor Author

Sevichecc commented Dec 13, 2024

@fguillot Thank you for the suggestion! You're absolutely right - implementing this as a block rule would be a much better approach. Since the current block rule system doesn't support date-based filtering. I could open another PR to implement this new block rule type for future-dated entries if you think that would be a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Option to Filter Out Future-Dated Entries
2 participants