Drop support for external URL as avatar

pull/1/head
yflory 5 years ago
parent 9da47ebac9
commit 20111e8416

@ -96,18 +96,6 @@ define([
if (cb) { cb($img); }
};
// XXX Drop support for external URLs
var parsed = Hash.parsePadUrl(href);
if (parsed.type !== "file" || parsed.hashData.type !== "file") {
var $img = $('<media-tag>').appendTo($container);
var img = new Image();
$(img).attr('src', href);
img.onload = function () {
centerImage($img, $(img), img);
$(img).appendTo($img);
};
return;
}
// No password for avatars
var privateData = common.getMetadataMgr().getPrivateData();
var origin = privateData.fileHost || privateData.origin;

Loading…
Cancel
Save