1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-16 23:58:54 +09:00

fix: Add comment property to DriveFile (#46)

* Add comment property to DriveFile

Some components of Misskey like the image viewer use this property, but it hasn't been defined in the type definition itself.

* Make DriveFile.comment nullable

There's a few places in the client code that checks for a null comment,
suggesting this field may be set to null.
This commit is contained in:
Francis Dinh 2022-09-17 08:44:41 -04:00 committed by GitHub
parent 6a87f4ade9
commit c89374c321
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -117,6 +117,7 @@ export type DriveFile = {
size: number;
md5: string;
blurhash: string;
comment: string | null;
properties: Record<string, any>;
};