aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/history_flush.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/history_flush.go')
-rw-r--r--ui/history_flush.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/history_flush.go b/ui/history_flush.go
index 5bb8910..6c6907b 100644
--- a/ui/history_flush.go
+++ b/ui/history_flush.go
@@ -8,7 +8,6 @@ import (
"net/http"
"miniflux.app/http/request"
- "miniflux.app/http/response"
"miniflux.app/http/response/html"
"miniflux.app/http/route"
)
@@ -17,9 +16,9 @@ import (
func (c *Controller) FlushHistory(w http.ResponseWriter, r *http.Request) {
err := c.store.FlushHistory(request.UserID(r))
if err != nil {
- html.ServerError(w, err)
+ html.ServerError(w, r, err)
return
}
- response.Redirect(w, r, route.Path(c.router, "history"))
+ html.Redirect(w, r, route.Path(c.router, "history"))
}