mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: Sort user bookmarks by reminder date (#13145)
This commit is contained in:
@@ -28,7 +28,7 @@ class BookmarkQuery
|
||||
|
||||
def list_all
|
||||
results = user_bookmarks.order(
|
||||
'(CASE WHEN bookmarks.pinned THEN 0 ELSE 1 END), bookmarks.updated_at DESC'
|
||||
'(CASE WHEN bookmarks.pinned THEN 0 ELSE 1 END), bookmarks.reminder_at ASC, bookmarks.updated_at DESC'
|
||||
)
|
||||
|
||||
topics = Topic.listable_topics.secured(@guardian)
|
||||
|
||||
Reference in New Issue
Block a user