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 năm trước cách đây
mục cha
commit
b62ecc6699
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 {
 	if entry == nil {
+		logger.Debug("[Fever] Marking entry #%d but not found, ignored", entryID)
+		json.OK(w, r, newBaseResponse())
 		return
 		return
 	}
 	}