Merge branch 'soon'

This commit is contained in:
ansuz 2018-05-17 12:26:26 +02:00
commit 65a53b150c
2 changed files with 3 additions and 3 deletions

View File

@ -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(); }

View File

@ -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) {