misskey-awawa/src/remote/activitypub/renderer/image.ts

9 lines
237 B
TypeScript

import { DriveFile } from '../../../models/entities/drive-file';
import { DriveFiles } from '../../../models';
export default (file: DriveFile) => ({
type: 'Image',
url: DriveFiles.getPublicUrl(file),
sensitive: file.isSensitive
});