summaryrefslogtreecommitdiff
path: root/src/client/app
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-04-24 20:41:32 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-04-24 20:41:32 +0900
commit7b29e7cf7e565923c1529d750530a03bbd9907e3 (patch)
tree7375795bb31c6fcf1f4bf443f1092e81be22e317 /src/client/app
parent11.3.0 (diff)
downloadmisskey-7b29e7cf7e565923c1529d750530a03bbd9907e3.tar.gz
misskey-7b29e7cf7e565923c1529d750530a03bbd9907e3.tar.bz2
misskey-7b29e7cf7e565923c1529d750530a03bbd9907e3.zip
Fix bug
Diffstat (limited to 'src/client/app')
-rw-r--r--src/client/app/common/views/components/uploader.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/app/common/views/components/uploader.vue b/src/client/app/common/views/components/uploader.vue
index 134243bbd7..78fbcbf6b8 100644
--- a/src/client/app/common/views/components/uploader.vue
+++ b/src/client/app/common/views/components/uploader.vue
@@ -38,10 +38,10 @@ export default Vue.extend({
const data = new FormData();
data.append('md5', getMD5(fileData));
- this.$root.api('drive/files/check_existence', {
+ this.$root.api('drive/files/find-by-hash', {
md5: getMD5(fileData)
}).then(resp => {
- resolve(resp.file);
+ resolve(resp.length > 0 ? resp[0] : null);
});
});
},