mirror of
https://github.com/miniflux/v2.git
synced 2025-08-16 18:01:37 +00:00
History: show entries in the order in which they were read
Add a changed_at timestamp to the entries table. This field is updated whenever the entry's metadata changes.
This commit is contained in:
parent
dc4240e702
commit
2570c3410b
8 changed files with 50 additions and 14 deletions
|
@ -52,11 +52,11 @@ func ValidateEntryStatus(status string) error {
|
|||
// ValidateEntryOrder makes sure the sorting order is valid.
|
||||
func ValidateEntryOrder(order string) error {
|
||||
switch order {
|
||||
case "id", "status", "published_at", "category_title", "category_id":
|
||||
case "id", "status", "changed_at", "published_at", "category_title", "category_id":
|
||||
return nil
|
||||
}
|
||||
|
||||
return fmt.Errorf(`Invalid entry order, valid order values are: "id", "status", "published_at", "category_title", "category_id"`)
|
||||
return fmt.Errorf(`Invalid entry order, valid order values are: "id", "status", "changed_at", "published_at", "category_title", "category_id"`)
|
||||
}
|
||||
|
||||
// ValidateDirection makes sure the sorting direction is valid.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue