Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

refactor: Make acting_user a mandatory kwarg for do_delete_avatar_image.

shanukun0abb493626bb
diff --git a/zerver/lib/actions.py b/zerver/lib/actions.py
index a00f9437675..14b51f3ccfd 100644
--- a/zerver/lib/actions.py
+++ b/zerver/lib/actions.py
@@ -4004,7 +4004,7 @@ def do_change_avatar_fields(
notify_avatar_url_change(user_profile)
-def do_delete_avatar_image(user: UserProfile, acting_user: Optional[UserProfile] = None) -> None:
+def do_delete_avatar_image(user: UserProfile, *, acting_user: Optional[UserProfile]) -> None:
do_change_avatar_fields(user, UserProfile.AVATAR_FROM_GRAVATAR, acting_user=acting_user)
delete_avatar_image(user)