misskey/src/remote/activitypub/renderer/image.ts
2018-10-31 22:35:02 +09:00

9 lines
249 B
TypeScript

import { IDriveFile } from '../../../models/drive-file';
import getDriveFileUrl from '../../../misc/get-drive-file-url';
export default (file: IDriveFile) => ({
type: 'Image',
url: getDriveFileUrl(file),
sensitive: file.metadata.isSensitive
});