移除自动缩小头像尺寸

This commit is contained in:
John Smith 2023-09-10 00:06:33 +08:00
parent 72c11d60da
commit a35d7a5bfc
2 changed files with 0 additions and 7 deletions

View File

@ -8,10 +8,6 @@ export function processAvatarUrl(avatarUrl) {
if (m) { if (m) {
avatarUrl = m[1] avatarUrl = m[1]
} }
// 缩小图片加快传输
if (!avatarUrl.endsWith('noface.gif')) {
avatarUrl += '@48w_48h'
}
return avatarUrl return avatarUrl
} }

View File

@ -114,9 +114,6 @@ def process_avatar_url(avatar_url):
m = re.fullmatch(r'(?:https?:)?(.*)', avatar_url) m = re.fullmatch(r'(?:https?:)?(.*)', avatar_url)
if m is not None: if m is not None:
avatar_url = m[1] avatar_url = m[1]
# 缩小图片加快传输
if not avatar_url.endswith('noface.gif'):
avatar_url += '@48w_48h'
return avatar_url return avatar_url