paricafe/src/remote/activitypub/renderer/document.ts

9 lines
229 B
TypeScript
Raw Normal View History

2018-04-01 23:15:53 -05:00
import config from '../../../config';
2018-06-18 00:28:43 -05:00
import { IDriveFile } from '../../../models/drive-file';
2018-04-01 05:18:36 -05:00
2018-06-18 00:28:43 -05:00
export default (file: IDriveFile) => ({
2018-04-01 05:18:36 -05:00
type: 'Document',
2018-06-18 00:28:43 -05:00
mediaType: file.contentType,
url: `${config.drive_url}/${file._id}`
2018-04-01 05:18:36 -05:00
});