mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 04:23:46 +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
@@ -834,7 +834,7 @@ class ZulipLDAPAuthBackendBase(ZulipAuthMixin, LDAPBackend):
|
||||
# any metadata, we auto-detect it.
|
||||
content_type = magic.from_buffer(ldap_avatar[:1024], mime=True)
|
||||
if content_type.startswith("image/"):
|
||||
upload_avatar_image(BytesIO(ldap_avatar), user, user, content_type=content_type)
|
||||
upload_avatar_image(BytesIO(ldap_avatar), user, content_type=content_type)
|
||||
do_change_avatar_fields(user, UserProfile.AVATAR_FROM_USER, acting_user=None)
|
||||
# Update avatar hash.
|
||||
user.avatar_hash = user_avatar_content_hash(ldap_avatar)
|
||||
|
||||
Reference in New Issue
Block a user