diff --git a/site/zenodo_rdm/moderation/handlers.py b/site/zenodo_rdm/moderation/handlers.py index 1118aed4..d57c3634 100644 --- a/site/zenodo_rdm/moderation/handlers.py +++ b/site/zenodo_rdm/moderation/handlers.py @@ -231,6 +231,9 @@ def __init__(self): def _run(self, identity, record, uow): """Run the moderation scoring.""" + # Skip moderation for system actions (e.g. subcommunity inclusion actions) + if identity == system_identity: + return user = UserAggregate.get_record(identity.id) # Perform the moderation checks asynchronously for verified users