From 5341bbcbe27fd8a9e73f4eeb18319daf5421dcb4 Mon Sep 17 00:00:00 2001 From: Dave Z Date: Tue, 28 Aug 2018 23:44:34 -0400 Subject: Add toggle status button to entry page --- ui/entry_feed.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/entry_feed.go') diff --git a/ui/entry_feed.go b/ui/entry_feed.go index 0ef4a11..be04e14 100644 --- a/ui/entry_feed.go +++ b/ui/entry_feed.go @@ -63,6 +63,8 @@ func (c *Controller) ShowFeedEntry(w http.ResponseWriter, r *http.Request) { html.ServerError(w, nil) return } + + entry.Status = model.EntryStatusRead } entryPaginationBuilder := storage.NewEntryPaginationBuilder(c.store, user.ID, entry.ID, user.EntryDirection) -- cgit v1.2.3