Merge branch 'soon'

pull/1/head
ansuz 7 years ago
commit 65a53b150c

@ -1166,9 +1166,9 @@ define([
var hexFileName = Util.base64ToHex(secret.channel);
var src = Hash.getBlobPathFromHex(hexFileName);
Common.getFileSize(hexFileName, function (e, data) {
if (e) {
if (e || !data) {
displayDefault();
return void console.error(e);
return void console.error(e || "404 avatar");
}
if (typeof data !== "number") { return void displayDefault(); }
if (Util.bytesToMegabytes(data) > 0.5) { return void displayDefault(); }

@ -92,7 +92,7 @@ define([
var profileChan = profile.edit ? Hash.hrefToHexChannelId('/profile/#' + profile.edit, null) : null;
if (profileChan) { list.push(profileChan); }
var avatarChan = profile.avatar ? Hash.hrefToHexChannelId(profile.avatar, null) : null;
if (avatarChan) { list.push(avatarChan); }
if (avatarChan) { list.push(Util.base64ToHex(avatarChan)); }
}
if (store.proxy.friends) {

Loading…
Cancel
Save