Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
bots: Allow changing bot owner without an acting_user.
Zixuan James Li7acf43f4753b
diff --git a/zerver/actions/bots.py b/zerver/actions/bots.pyindex 34f83f5066b..89812148ede 100644--- a/zerver/actions/bots.py+++ b/zerver/actions/bots.py@@ -1,4 +1,4 @@-from typing import Optional+from typing import Optional, Unionimport orjsonfrom django.db import transaction@@ -11,7 +11,7 @@ from zerver.tornado.django_api import send_event@transaction.atomic(durable=True)def do_change_bot_owner(- user_profile: UserProfile, bot_owner: UserProfile, acting_user: UserProfile+ user_profile: UserProfile, bot_owner: UserProfile, acting_user: Union[UserProfile, None]) -> None:previous_owner = user_profile.bot_owneruser_profile.bot_owner = bot_owner