Merge branch 'soon'
This commit is contained in:
commit
65a53b150c
@ -1166,9 +1166,9 @@ define([
|
|||||||
var hexFileName = Util.base64ToHex(secret.channel);
|
var hexFileName = Util.base64ToHex(secret.channel);
|
||||||
var src = Hash.getBlobPathFromHex(hexFileName);
|
var src = Hash.getBlobPathFromHex(hexFileName);
|
||||||
Common.getFileSize(hexFileName, function (e, data) {
|
Common.getFileSize(hexFileName, function (e, data) {
|
||||||
if (e) {
|
if (e || !data) {
|
||||||
displayDefault();
|
displayDefault();
|
||||||
return void console.error(e);
|
return void console.error(e || "404 avatar");
|
||||||
}
|
}
|
||||||
if (typeof data !== "number") { return void displayDefault(); }
|
if (typeof data !== "number") { return void displayDefault(); }
|
||||||
if (Util.bytesToMegabytes(data) > 0.5) { 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;
|
var profileChan = profile.edit ? Hash.hrefToHexChannelId('/profile/#' + profile.edit, null) : null;
|
||||||
if (profileChan) { list.push(profileChan); }
|
if (profileChan) { list.push(profileChan); }
|
||||||
var avatarChan = profile.avatar ? Hash.hrefToHexChannelId(profile.avatar, null) : null;
|
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) {
|
if (store.proxy.friends) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user