Webpack build for branch master: bc30fdd867

This commit is contained in:
Travis CI 2017-10-26 19:14:41 +00:00
parent caa5d083f5
commit 7d96d29213
2 changed files with 2 additions and 1 deletions

View file

@ -184,6 +184,7 @@ exports.Endpoints = {
Asset: name => `${root}/assets/${name}`,
DefaultAvatar: number => `${root}/embed/avatars/${number}.png`,
Avatar: (userID, hash, format = 'default', size) => {
if (userID === '1') return hash;
if (format === 'default') format = hash.startsWith('a_') ? 'gif' : 'webp';
return makeImageUrl(`${root}/avatars/${userID}/${hash}`, { format, size });
},

File diff suppressed because one or more lines are too long