mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-02 16:58:49 +09:00
Update upload_from_url.js
This commit is contained in:
parent
7d15d1c196
commit
96bd1cc730
@ -23,6 +23,7 @@ module.exports = (params, user) =>
|
||||
new Promise(async (res, rej) =>
|
||||
{
|
||||
// Get 'url' parameter
|
||||
// TODO: Validate this url
|
||||
const url = params.url;
|
||||
if (url == null) {
|
||||
return rej('url is required');
|
||||
|
Loading…
Reference in New Issue
Block a user