summaryrefslogtreecommitdiff
path: root/src/client/scripts/select-file.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-05-31 13:06:40 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-05-31 13:06:40 +0900
commit929e5455149fd770c53dc03dabd9572f586772c1 (patch)
treec34d7f85b0a7b324f412b2a6bb4168574da30f6f /src/client/scripts/select-file.ts
parentMerge branch 'develop' (diff)
parent12.82.0 (diff)
downloadmisskey-929e5455149fd770c53dc03dabd9572f586772c1.tar.gz
misskey-929e5455149fd770c53dc03dabd9572f586772c1.tar.bz2
misskey-929e5455149fd770c53dc03dabd9572f586772c1.zip
Merge branch 'develop'
Diffstat (limited to 'src/client/scripts/select-file.ts')
-rw-r--r--src/client/scripts/select-file.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/scripts/select-file.ts b/src/client/scripts/select-file.ts
index c193e7dc71..b8039fb670 100644
--- a/src/client/scripts/select-file.ts
+++ b/src/client/scripts/select-file.ts
@@ -47,7 +47,7 @@ export function selectFile(src: any, label: string | null, multiple = false) {
const marker = Math.random().toString(); // TODO: UUIDとか使う
- const connection = os.stream.useSharedConnection('main');
+ const connection = os.stream.useChannel('main');
connection.on('urlUploadFinished', data => {
if (data.marker === marker) {
res(multiple ? [data.file] : data.file);
@@ -55,7 +55,7 @@ export function selectFile(src: any, label: string | null, multiple = false) {
}
});
- os.api('drive/files/upload_from_url', {
+ os.api('drive/files/upload-from-url', {
url: url,
marker
});