Skip to content

Fix: sort RSS feed query reverse-chronologically #3546

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

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

cdzombak
Copy link
Contributor

On my site I noticed that the feed did not include my most recently uploaded photos. If I reduced the number of days shown in the RSS feed, more recent photos appeared in the feed.

The cause of this bug is that the query for photos for the RSS feed did not specify an order. This PR sets it to photos.created_at DESC, so the RSS feed will always show the most recent photos regardless of the RSS days + maximum photos settings.

@cdzombak cdzombak requested a review from a team as a code owner July 19, 2025 23:54
Copy link

codecov bot commented Jul 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.85%. Comparing base (40a92b5) to head (2917cdc).
Report is 5 commits behind head on master.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ildyria ildyria merged commit e882422 into LycheeOrg:master Jul 24, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants