From eee1f3190355224eef63a4dcdef8c36eb3ca3738 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Mon, 3 Sep 2018 14:26:40 -0700 Subject: Refactor HTTP context handling --- ui/history_flush.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui/history_flush.go') diff --git a/ui/history_flush.go b/ui/history_flush.go index 0776f9c..5bb8910 100644 --- a/ui/history_flush.go +++ b/ui/history_flush.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/ui" import ( "net/http" - "miniflux.app/http/context" + "miniflux.app/http/request" "miniflux.app/http/response" "miniflux.app/http/response/html" "miniflux.app/http/route" @@ -15,7 +15,7 @@ import ( // FlushHistory changes all "read" items to "removed". func (c *Controller) FlushHistory(w http.ResponseWriter, r *http.Request) { - err := c.store.FlushHistory(context.New(r).UserID()) + err := c.store.FlushHistory(request.UserID(r)) if err != nil { html.ServerError(w, err) return -- cgit v1.2.3