upload: Remove redundant acting_user_profile argument.

This argument, effectively added in 9eb47f108c, was never actually
used.
This commit is contained in:
Alex Vandiver
2024-06-25 21:27:26 +00:00
committed by Tim Abbott
parent 41d1b417e7
commit 08b24484d1
11 changed files with 15 additions and 16 deletions

View File

@@ -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
)