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

FEATURE: Order pinned topics by their pinned_at column #14090

Merged
merged 2 commits into from Aug 19, 2021

Conversation

OsamaSayegh
Copy link
Member

@OsamaSayegh OsamaSayegh commented Aug 19, 2021

Currently, pinned topics are ordered by the bumped_at column. This behavior is not desired because it gives admins no control over the order of pinned topics. This PR makes pinned topics ordered by the pinned_at column. A topic that is pinned last appears first in topic lists. If an admin wants an already pinned topic to appear first in the list of pinned topics, they'll have to unpin that topic and pin it again.

Meta topic: https://meta.discourse.org/t/how-do-i-set-the-order-of-pinned-topics/16935/23?u=osama.

@OsamaSayegh OsamaSayegh changed the title FEATURE: Order pinned topics by their pinned_at timestamp FEATURE: Order pinned topics by their pinned_at column Aug 19, 2021
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/how-do-i-set-the-order-of-pinned-topics/16935/30

lib/topic_query.rb Outdated Show resolved Hide resolved
@OsamaSayegh OsamaSayegh merged commit ec352a1 into main Aug 19, 2021
@OsamaSayegh OsamaSayegh deleted the feature/order-pinned-topic-by-pinned-at branch August 19, 2021 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants