monkeeShark/packages/backend/src/remote/activitypub/renderer/document.ts
syuilo 0e4a111f81 refactoring
Resolve #7779
2021-11-12 02:02:25 +09:00

9 lines
247 B
TypeScript

import { DriveFile } from '@/models/entities/drive-file';
import { DriveFiles } from '@/models/index';
export default (file: DriveFile) => ({
type: 'Document',
mediaType: file.type,
url: DriveFiles.getPublicUrl(file),
name: file.comment,
});