1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

fix: improve pagination when having identical publication date

This commit is contained in:
Frédéric Guillot 2025-01-18 16:49:08 -08:00
parent 9c82e55b98
commit 400e8974f9
10 changed files with 12 additions and 3 deletions

View file

@ -24,6 +24,7 @@ func (h *handler) sharedEntries(w http.ResponseWriter, r *http.Request) {
builder := h.store.NewEntryQueryBuilder(user.ID)
builder.WithShareCodeNotEmpty()
builder.WithSorting(user.EntryOrder, user.EntryDirection)
builder.WithSorting("id", user.EntryDirection)
builder.WithOffset(offset)
builder.WithLimit(user.EntriesPerPage)