mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
refactor: Make acting_user a mandatory kwarg for do_delete_avatar_image.
This commit is contained in:
parent
2d336d38b9
commit
0abb493626
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user