Browse Source

Send a response when changing status of removed entries in Fever API

When a client, like Reeder, tries to mark an item which is removed on Miniflux, the server doesn't response OK. This may terminate the sync process, the PR fixes it.
Jebbs 6 years ago
parent
commit
b62ecc6699
1 changed files with 2 additions and 0 deletions
  1. 2 0
      fever/handler.go

+ 2 - 0
fever/handler.go

@@ -398,6 +398,8 @@ func (h *handler) handleWriteItems(w http.ResponseWriter, r *http.Request) {
 	}
 
 	if entry == nil {
+		logger.Debug("[Fever] Marking entry #%d but not found, ignored", entryID)
+		json.OK(w, r, newBaseResponse())
 		return
 	}