aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/category_entries.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/category_entries.go')
-rw-r--r--ui/category_entries.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/category_entries.go b/ui/category_entries.go
index 19b17b9..998f207 100644
--- a/ui/category_entries.go
+++ b/ui/category_entries.go
@@ -39,7 +39,7 @@ func (h *handler) showCategoryEntriesPage(w http.ResponseWriter, r *http.Request
builder.WithCategoryID(category.ID)
builder.WithOrder(model.DefaultSortingOrder)
builder.WithDirection(user.EntryDirection)
- builder.WithoutStatus(model.EntryStatusRemoved)
+ builder.WithStatus(model.EntryStatusUnread)
builder.WithOffset(offset)
builder.WithLimit(nbItemsPerPage)
@@ -66,6 +66,7 @@ func (h *handler) showCategoryEntriesPage(w http.ResponseWriter, r *http.Request
view.Set("countUnread", h.store.CountUnreadEntries(user.ID))
view.Set("countErrorFeeds", h.store.CountErrorFeeds(user.ID))
view.Set("hasSaveEntry", h.store.HasSaveEntry(user.ID))
+ view.Set("showOnlyUnreadEntries", true)
html.OK(w, r, view.Render("category_entries"))
}