From 9fbef15ad1d922199aa70dfed659eda79ccf64da Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Fri, 6 Oct 2023 17:00:21 +1300 Subject: [PATCH] The function argument is good enough --- matrix/file.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/matrix/file.js b/matrix/file.js index 626a1ad..f0ee29a 100644 --- a/matrix/file.js +++ b/matrix/file.js @@ -21,13 +21,11 @@ function _removeExpiryParams(url) { } /** - * @param {string} path + * @param {string} path or full URL if it's not a Discord CDN file */ async function uploadDiscordFileToMxc(path) { let url if (path.startsWith("http")) { - // TODO: this is cheating to make seed.js easier. due a refactor or a name change since it's not soley for discord? - // possibly could be good to save non-discord external URLs under a user-specified key rather than simply using the url? url = path } else { url = DISCORD_IMAGES_BASE + path