diff options
Diffstat (limited to 'ui/unread_mark_all_read.go')
-rw-r--r-- | ui/unread_mark_all_read.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ui/unread_mark_all_read.go b/ui/unread_mark_all_read.go index 724da67..c7b9fa0 100644 --- a/ui/unread_mark_all_read.go +++ b/ui/unread_mark_all_read.go @@ -13,11 +13,10 @@ import ( "miniflux.app/logger" ) -// MarkAllAsRead marks all unread entries as read. -func (c *Controller) MarkAllAsRead(w http.ResponseWriter, r *http.Request) { - if err := c.store.MarkAllAsRead(request.UserID(r)); err != nil { +func (h *handler) markAllAsRead(w http.ResponseWriter, r *http.Request) { + if err := h.store.MarkAllAsRead(request.UserID(r)); err != nil { logger.Error("[MarkAllAsRead] %v", err) } - html.Redirect(w, r, route.Path(c.router, "unread")) + html.Redirect(w, r, route.Path(h.router, "unread")) } |