Skip to content

Commit

Permalink
Fix incorrect size redefinition for Discord avatar acquisition code. (#…
Browse files Browse the repository at this point in the history
…11050)

Fix incorrect size redefinition.

Signed-off-by: Aterfax <Aterfax@users.noreply.github.com>
  • Loading branch information
Aterfax authored Aug 26, 2024
1 parent befce18 commit 5d2d9c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/docs/sources/discord/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def get_as_base64(url):

def get_avatar_from_avatar_url(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(
base64_string=(get_as_base64(cut_url).decode("utf-8"))
)
Expand Down

0 comments on commit 5d2d9c9

Please sign in to comment.