1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-04 09:48:43 +09:00

Update upload_from_url.js

This commit is contained in:
syuilo⭐️ 2017-02-21 09:28:11 +09:00 committed by GitHub
parent 7d15d1c196
commit 96bd1cc730

View File

@ -23,6 +23,7 @@ module.exports = (params, user) =>
new Promise(async (res, rej) => new Promise(async (res, rej) =>
{ {
// Get 'url' parameter // Get 'url' parameter
// TODO: Validate this url
const url = params.url; const url = params.url;
if (url == null) { if (url == null) {
return rej('url is required'); return rej('url is required');