summaryrefslogtreecommitdiff
path: root/src/models
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2019-04-15 11:32:53 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-04-15 11:32:53 +0900
commit0452b75c3e1348b64d30b57fca3c825844c4f06a (patch)
treeb0595eaccf90561a5b05358acb42c32db3491b85 /src/models
parentUpdate README.md [AUTOGEN] (#4691) (diff)
downloadsharkey-0452b75c3e1348b64d30b57fca3c825844c4f06a.tar.gz
sharkey-0452b75c3e1348b64d30b57fca3c825844c4f06a.tar.bz2
sharkey-0452b75c3e1348b64d30b57fca3c825844c4f06a.zip
Fix #4688 (#4689)
Diffstat (limited to 'src/models')
-rw-r--r--src/models/repositories/drive-file.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models/repositories/drive-file.ts b/src/models/repositories/drive-file.ts
index 7dd794d031..f117b38b24 100644
--- a/src/models/repositories/drive-file.ts
+++ b/src/models/repositories/drive-file.ts
@@ -19,7 +19,7 @@ export class DriveFileRepository extends Repository<DriveFile> {
}
public getPublicUrl(file: DriveFile, thumbnail = false): string | null {
- return thumbnail ? (file.thumbnailUrl || file.webpublicUrl || null) : (file.webpublicUrl || file.thumbnailUrl || file.url);
+ return thumbnail ? (file.thumbnailUrl || file.webpublicUrl || null) : (file.webpublicUrl || file.url);
}
public async clacDriveUsageOf(user: User['id'] | User): Promise<number> {