* improve post form attaches * Fix * chain * 右クリックでも反応するように
This commit is contained in:
parent
2d5158c680
commit
487a3079cd
10 changed files with 169 additions and 154 deletions
|
@ -18,12 +18,8 @@ export class DriveFileRepository extends Repository<DriveFile> {
|
|||
);
|
||||
}
|
||||
|
||||
public getPublicUrl(file: DriveFile, thumbnail = false): string {
|
||||
if (thumbnail) {
|
||||
return file.thumbnailUrl || file.webpublicUrl || file.url;
|
||||
} else {
|
||||
return file.webpublicUrl || file.thumbnailUrl || file.url;
|
||||
}
|
||||
public getPublicUrl(file: DriveFile, thumbnail = false): string | null {
|
||||
return thumbnail ? (file.thumbnailUrl || file.webpublicUrl || null) : (file.webpublicUrl || file.thumbnailUrl || file.url);
|
||||
}
|
||||
|
||||
public async clacDriveUsageOf(user: User['id'] | User): Promise<number> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue