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

8 lines
164 B
TypeScript

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