Fix for unstarring/unsaving bookmark with Fever API

This commit is contained in:
Rogier Lommers 2018-01-11 01:18:57 +01:00 committed by fguillot
parent 7f8e9c9c17
commit ce4de8aece
1 changed files with 1 additions and 1 deletions

View File

@ -501,7 +501,7 @@ func (c *Controller) handleWriteItems(ctx *handler.Context, request *handler.Req
c.store.SetEntriesStatus(userID, []int64{entryID}, model.EntryStatusRead)
case "unread":
c.store.SetEntriesStatus(userID, []int64{entryID}, model.EntryStatusUnread)
case "saved":
case "saved", "unsaved":
if err := c.store.ToggleBookmark(userID, entryID); err != nil {
response.JSON().ServerError(err)
return