Set broadcast message to stubbed when posting broadcast via API

This commit is contained in:
Pea Tyczynska
2021-02-08 19:08:43 +00:00
parent e0ddb5a39e
commit 3037bf5fff
2 changed files with 26 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ def create_broadcast():
},
status=BroadcastStatusType.PENDING_APPROVAL,
api_key_id=api_user.id,
stubbed=authenticated_service.restricted
# The client may pass in broadcast_json['expires'] but its
# simpler for now to ignore it and have the rules around expiry
# for broadcasts created with the API match those created from