Fix incorrect size redefinition for Discord avatar acquisition code. (#11050)
Fix incorrect size redefinition. Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
This commit is contained in:
@ -341,7 +341,7 @@ def get_as_base64(url):
|
|||||||
|
|
||||||
def get_avatar_from_avatar_url(url):
|
def get_avatar_from_avatar_url(url):
|
||||||
"""Returns an authentik-avatar-attributes-compatible string from an image url"""
|
"""Returns an authentik-avatar-attributes-compatible string from an image url"""
|
||||||
cut_url = f"{url}?size=64"
|
cut_url = f"{url}"
|
||||||
return AVATAR_STREAM_CONTENT.format(
|
return AVATAR_STREAM_CONTENT.format(
|
||||||
base64_string=(get_as_base64(cut_url).decode("utf-8"))
|
base64_string=(get_as_base64(cut_url).decode("utf-8"))
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user