mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
upload: Remove redundant acting_user_profile argument.
This argument, effectively added in 9eb47f108c, was never actually
used.
This commit is contained in:
committed by
Tim Abbott
parent
41d1b417e7
commit
08b24484d1
@@ -181,18 +181,17 @@ def write_avatar_images(
|
||||
|
||||
def upload_avatar_image(
|
||||
user_file: IO[bytes],
|
||||
acting_user_profile: UserProfile,
|
||||
target_user_profile: UserProfile,
|
||||
user_profile: UserProfile,
|
||||
content_type: Optional[str] = None,
|
||||
backend: Optional[ZulipUploadBackend] = None,
|
||||
) -> None:
|
||||
if content_type is None:
|
||||
content_type = guess_type(user_file.name)[0]
|
||||
file_path = user_avatar_path(target_user_profile)
|
||||
file_path = user_avatar_path(user_profile)
|
||||
|
||||
image_data = user_file.read()
|
||||
write_avatar_images(
|
||||
file_path, target_user_profile, image_data, content_type=content_type, backend=backend
|
||||
file_path, user_profile, image_data, content_type=content_type, backend=backend
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user