From 20111e8416b71958b9f4538b5c6e07bd9b7c12bd Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 6 Apr 2020 13:22:56 +0200 Subject: [PATCH] Drop support for external URL as avatar --- www/common/inner/common-mediatag.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/www/common/inner/common-mediatag.js b/www/common/inner/common-mediatag.js index 001bae062..217eb3ed1 100644 --- a/www/common/inner/common-mediatag.js +++ b/www/common/inner/common-mediatag.js @@ -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 = $('').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;