rudeshark.net/src/remote/activitypub/renderer/document.ts
2018-04-02 13:15:53 +09:00

8 lines
166 B
TypeScript

import config from '../../../config';
export default ({ _id, contentType }) => ({
type: 'Document',
mediaType: contentType,
url: `${config.drive_url}/${_id}`
});