头像不使用webp

This commit is contained in:
John Smith 2019-06-12 19:31:56 +08:00
parent 1cbaed4127
commit da242fc853

View File

@ -34,7 +34,7 @@ async def get_avatar_url(user_id):
data = await r.json()
url = data['data']['face']
if not url.endswith('noface.gif'):
url += '@24w_24h.webp'
url += '@24w_24h'
_avatar_url_cache[user_id] = url
if len(_avatar_url_cache) > 10000: