From 2c7a855e115b625e29797fd3c8612fc8de1b1b07 Mon Sep 17 00:00:00 2001 From: khazhyk Date: Sun, 15 Jul 2018 21:48:50 -0700 Subject: [PATCH] Revert "Ensure gif avatar urls end in `.gif`" This reverts commit 456390f417e63126b08ac52fa8ee49ca68cefed8. This commit isn't needed anymore - the image proxy now properly handles gifs that do not end in .gif --- discord/user.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/discord/user.py b/discord/user.py index a1f3704dc..8e87520eb 100644 --- a/discord/user.py +++ b/discord/user.py @@ -155,10 +155,7 @@ class BaseUser(_BaseUser): else: format = static_format - # Discord has trouble animating gifs if the url does not end in `.gif` - gif_fix = '&_=.gif' if format == 'gif' else '' - - return 'https://cdn.discordapp.com/avatars/{0.id}/{0.avatar}.{1}?size={2}{3}'.format(self, format, size, gif_fix) + return 'https://cdn.discordapp.com/avatars/{0.id}/{0.avatar}.{1}?size={2}'.format(self, format, size) @property def default_avatar(self):