Explorar o código

Fix for unstarring/unsaving bookmark with Fever API

Rogier Lommers %!s(int64=8) %!d(string=hai) anos
pai
achega
ce4de8aece
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fever/fever.go

+ 1 - 1
fever/fever.go

@@ -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