diff --git a/invenio_communities/communities/services/service.py b/invenio_communities/communities/services/service.py index a9862b1b8..223ebd480 100644 --- a/invenio_communities/communities/services/service.py +++ b/invenio_communities/communities/services/service.py @@ -169,6 +169,8 @@ def search_community_requests( must=[ dsl.Q("term", **{"receiver.community": community_id}), ~dsl.Q("term", **{"status": "created"}), + # Excluding explicitly for now + ~dsl.Q("term", **{"type": "community-membership-request"}) ], ), **kwargs,