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

Don't replace first post with pin if limit=1 #2841

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

mozzius
Copy link
Member

@mozzius mozzius commented Sep 30, 2024

We had weird divergent behaviour if you asked for limit=1 or not where limit=1 would only return the pinned post. Since we ask for limit=1 to check to see if there are new posts, we should instead return the pin and the top post here so we can check both

Copy link
Collaborator

@dholms dholms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup looks good 👍

@dholms dholms merged commit 023474c into main Oct 1, 2024
10 checks passed
@dholms dholms deleted the samuel/pin-limit branch October 1, 2024 16:53
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.

3 participants