Browse Source

Revert "Ensure gif avatar urls end in `.gif`"

This reverts commit 456390f417.

This commit isn't needed anymore - the image proxy now properly
handles gifs that do not end in .gif
pull/1441/head
khazhyk 7 years ago
committed by Rapptz
parent
commit
2c7a855e11
  1. 5
      discord/user.py

5
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):

Loading…
Cancel
Save