From 937899194ded930982a7acd170ae8cf3f4852bce Mon Sep 17 00:00:00 2001 From: NobeKanai Date: Wed, 22 Sep 2021 14:39:13 +0800 Subject: [PATCH] Fix inconsistent navigation in history pages --- ui/entry_read.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/entry_read.go b/ui/entry_read.go index a3eb8bba..b61e64e7 100644 --- a/ui/entry_read.go +++ b/ui/entry_read.go @@ -39,7 +39,7 @@ func (h *handler) showReadEntryPage(w http.ResponseWriter, r *http.Request) { return } - entryPaginationBuilder := storage.NewEntryPaginationBuilder(h.store, user.ID, entry.ID, user.EntryOrder, user.EntryDirection) + entryPaginationBuilder := storage.NewEntryPaginationBuilder(h.store, user.ID, entry.ID, "changed_at", "desc") entryPaginationBuilder.WithStatus(model.EntryStatusRead) prevEntry, nextEntry, err := entryPaginationBuilder.Entries() if err != nil {