aboutsummaryrefslogtreecommitdiffhomepage
path: root/ui/entry_toggle_bookmark.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/entry_toggle_bookmark.go')
-rw-r--r--ui/entry_toggle_bookmark.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/entry_toggle_bookmark.go b/ui/entry_toggle_bookmark.go
index 9f7a3e7..3e638a1 100644
--- a/ui/entry_toggle_bookmark.go
+++ b/ui/entry_toggle_bookmark.go
@@ -11,10 +11,9 @@ import (
"miniflux.app/http/response/json"
)
-// ToggleBookmark handles Ajax request to toggle bookmark value.
-func (c *Controller) ToggleBookmark(w http.ResponseWriter, r *http.Request) {
+func (h *handler) toggleBookmark(w http.ResponseWriter, r *http.Request) {
entryID := request.RouteInt64Param(r, "entryID")
- if err := c.store.ToggleBookmark(request.UserID(r), entryID); err != nil {
+ if err := h.store.ToggleBookmark(request.UserID(r), entryID); err != nil {
json.ServerError(w, r, err)
return
}