Browse Source

Fix inconsistent navigation in history pages

NobeKanai 4 years ago
parent
commit
937899194d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ui/entry_read.go

+ 1 - 1
ui/entry_read.go

@@ -39,7 +39,7 @@ func (h *handler) showReadEntryPage(w http.ResponseWriter, r *http.Request) {
 		return
 		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)
 	entryPaginationBuilder.WithStatus(model.EntryStatusRead)
 	prevEntry, nextEntry, err := entryPaginationBuilder.Entries()
 	prevEntry, nextEntry, err := entryPaginationBuilder.Entries()
 	if err != nil {
 	if err != nil {