aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/history_flush.go
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-09-03 14:26:40 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-09-03 14:26:40 -0700
commiteee1f3190355224eef63a4dcdef8c36eb3ca3738 (patch)
tree009b7ca67b96d9be473d8ddf2c8c95f22a6749d1 /ui/history_flush.go
parent88e81d4d800ff6433518522954197d75203a25c2 (diff)
Refactor HTTP context handling
Diffstat (limited to 'ui/history_flush.go')
-rw-r--r--ui/history_flush.go6
1 files changed, 3 insertions, 3 deletions
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