Skip to content
Snippets Groups Projects
Commit ce4de8ae authored by Rogier Lommers's avatar Rogier Lommers Committed by fguillot
Browse files

Fix for unstarring/unsaving bookmark with Fever API

parent 7f8e9c9c
No related branches found
No related tags found
No related merge requests found
...@@ -501,7 +501,7 @@ func (c *Controller) handleWriteItems(ctx *handler.Context, request *handler.Req ...@@ -501,7 +501,7 @@ func (c *Controller) handleWriteItems(ctx *handler.Context, request *handler.Req
c.store.SetEntriesStatus(userID, []int64{entryID}, model.EntryStatusRead) c.store.SetEntriesStatus(userID, []int64{entryID}, model.EntryStatusRead)
case "unread": case "unread":
c.store.SetEntriesStatus(userID, []int64{entryID}, model.EntryStatusUnread) c.store.SetEntriesStatus(userID, []int64{entryID}, model.EntryStatusUnread)
case "saved": case "saved", "unsaved":
if err := c.store.ToggleBookmark(userID, entryID); err != nil { if err := c.store.ToggleBookmark(userID, entryID); err != nil {
response.JSON().ServerError(err) response.JSON().ServerError(err)
return return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment