Explorar o código

Fix inconsistent navigation in history pages

NobeKanai %!s(int64=4) %!d(string=hai) anos
pai
achega
937899194d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}
 
-	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 {