1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-12-18 08:38:52 +09:00
misskey/src/remote/activitypub/renderer/image.ts
2018-08-12 04:42:14 +09:00

9 lines
256 B
TypeScript

import config from '../../../config';
import { IDriveFile } from '../../../models/drive-file';
export default (file: IDriveFile) => ({
type: 'Image',
url: file.metadata.url || `${config.drive_url}/${file._id}`,
sensitive: file.metadata.isSensitive
});