summaryrefslogtreecommitdiff
path: root/src/web/app/common
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-03-13 14:56:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-03-13 14:56:53 +0900
commit3dd3d06b1925c9c4cbfc0e9a3cb3205af17e3e9f (patch)
tree380e0a0ecbfe17aa28570da67bb7f0c6e425af0e /src/web/app/common
parent[Client] :v: (diff)
downloadmisskey-3dd3d06b1925c9c4cbfc0e9a3cb3205af17e3e9f.tar.gz
misskey-3dd3d06b1925c9c4cbfc0e9a3cb3205af17e3e9f.tar.bz2
misskey-3dd3d06b1925c9c4cbfc0e9a3cb3205af17e3e9f.zip
[Client] :v:
Diffstat (limited to 'src/web/app/common')
-rw-r--r--src/web/app/common/tags/uploader.tag2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/web/app/common/tags/uploader.tag b/src/web/app/common/tags/uploader.tag
index d40ac0a6a0..845cd9d127 100644
--- a/src/web/app/common/tags/uploader.tag
+++ b/src/web/app/common/tags/uploader.tag
@@ -145,6 +145,8 @@
this.uploads = [];
this.upload = (file, folder) => {
+ if (folder && typeof folder == 'object') folder = folder.id;
+
const id = Math.random();
const ctx = {