diff --git a/mpcontribs-api/mpcontribs/api/projects/document.py b/mpcontribs-api/mpcontribs/api/projects/document.py index 7b4ddeed8..6fd439dc4 100644 --- a/mpcontribs-api/mpcontribs/api/projects/document.py +++ b/mpcontribs-api/mpcontribs/api/projects/document.py @@ -117,8 +117,9 @@ def post_save(cls, sender, document, **kwargs): Name=f"mpcontribs_{document.name}", Attributes={"DisplayName": f"MPContribs {document.title}"}, ) + endpoint = document.owner.split(":", 1)[1] sns_client.subscribe( - TopicArn=resp["TopicArn"], Protocol="email", Endpoint=document.owner + TopicArn=resp["TopicArn"], Protocol="email", Endpoint=endpoint ) else: set_keys = document._delta()[0].keys()