Преглед на файлове

Fix inconsistent navigation in history pages

NobeKanai преди 4 години
родител
ревизия
937899194d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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 {