mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
refactor: Make acting_user a mandatory kwarg for bulk_add_subscriptions.
This commit is contained in:
@@ -90,7 +90,7 @@ def create_integration_stream(integration: WebhookIntegration, bot: UserProfile)
|
||||
assert isinstance(bot.bot_owner, UserProfile)
|
||||
realm = bot.bot_owner.realm
|
||||
stream, created = create_stream_if_needed(realm, integration.stream_name)
|
||||
bulk_add_subscriptions(realm, [stream], [bot, bot.bot_owner])
|
||||
bulk_add_subscriptions(realm, [stream], [bot, bot.bot_owner], acting_user=bot)
|
||||
|
||||
|
||||
def get_integration(integration_name: str) -> WebhookIntegration:
|
||||
|
Reference in New Issue
Block a user