From 9d6641be3acdfbf434c77cd6e1127bb98c8d2846 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 16 Aug 2018 08:18:41 +0900 Subject: [PATCH] Fix bug --- package.json | 2 +- src/models/drive-file.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9d0cb1cc2..52af4aa86 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "misskey", "author": "syuilo ", - "version": "6.0.1", + "version": "6.0.2", "clientVersion": "1.0.8367", "codename": "nighthike", "main": "./built/index.js", diff --git a/src/models/drive-file.ts b/src/models/drive-file.ts index 358dd8944..2b9efc404 100644 --- a/src/models/drive-file.ts +++ b/src/models/drive-file.ts @@ -165,7 +165,7 @@ export const pack = ( _target = Object.assign(_target, _file.metadata); _target.url = _file.metadata.url ? _file.metadata.url : `${config.drive_url}/${_target.id}/${encodeURIComponent(_target.name)}`; - _target.thumbnailUrl = _file.metadata.thumbnailUrl ? _file.metadata.thumbnailUrl : `${config.drive_url}/${_target.id}/${encodeURIComponent(_target.name)}?thumbnail`; + _target.thumbnailUrl = _file.metadata.thumbnailUrl ? _file.metadata.thumbnailUrl : _file.metadata.url ? _file.metadata.url : `${config.drive_url}/${_target.id}/${encodeURIComponent(_target.name)}?thumbnail`; _target.isRemote = _file.metadata.isRemote; if (_target.properties == null) _target.properties = {};