1
0
forked from mirror/misskey
This commit is contained in:
MeiMei 2019-04-15 11:32:53 +09:00 committed by syuilo
parent 97efd23ec8
commit 0452b75c3e

View File

@ -19,7 +19,7 @@ export class DriveFileRepository extends Repository<DriveFile> {
} }
public getPublicUrl(file: DriveFile, thumbnail = false): string | null { 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> { public async clacDriveUsageOf(user: User['id'] | User): Promise<number> {