diff --git a/src/collective/feedback/restapi/services/get.py b/src/collective/feedback/restapi/services/get.py index ae6b60d..17a79b4 100644 --- a/src/collective/feedback/restapi/services/get.py +++ b/src/collective/feedback/restapi/services/get.py @@ -193,9 +193,11 @@ def get_data(self): # Use has_unread filter if has_undread is not None: - has_undread = not (has_undread == "false") and has_undread == "true" - if feedback["has_unread"] != has_undread: - pages_to_remove.append(uid) + if has_undread in ("true", "false"): + has_undread = not (has_undread == "false") and has_undread == "true" + + if feedback["has_unread"] != has_undread: + pages_to_remove.append(uid) for uid in pages_to_remove: del feedbacks[uid]